Skip to main content

AppUniqueness

Trait AppUniqueness 

Source
pub trait AppUniqueness {
    // Required methods
    fn different_identifier(
        &self,
        process_a: &ProcessBinary,
        process_b: &ProcessBinary,
    ) -> bool;
    fn different_identifier_process(
        &self,
        process_a: &ProcessBinary,
        process_b: &dyn Process,
    ) -> bool;
    fn different_identifier_processes(
        &self,
        process_a: &dyn Process,
        process_b: &dyn Process,
    ) -> bool;
}
Expand description

Whether two processes have the same Application Identifier; two processes with the same Application Identifier cannot run concurrently.

Required Methods§

Source

fn different_identifier( &self, process_a: &ProcessBinary, process_b: &ProcessBinary, ) -> bool

Returns whether process_a and process_b have a different identifier, and so can run concurrently. If this returns false, the kernel will not run process_a and process_b at the same time.

Source

fn different_identifier_process( &self, process_a: &ProcessBinary, process_b: &dyn Process, ) -> bool

Returns whether process_a and process_b have a different identifier, and so can run concurrently. If this returns false, the kernel will not run process_a and process_b at the same time.

Source

fn different_identifier_processes( &self, process_a: &dyn Process, process_b: &dyn Process, ) -> bool

Returns whether process_a and process_b have a different identifier, and so can run concurrently. If this returns false, the kernel will not run process_a and process_b at the same time.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl AppUniqueness for ()

Default implementation.

Source§

fn different_identifier( &self, _process_a: &ProcessBinary, _process_b: &ProcessBinary, ) -> bool

Source§

fn different_identifier_process( &self, _process_a: &ProcessBinary, _process_b: &dyn Process, ) -> bool

Source§

fn different_identifier_processes( &self, _process_a: &dyn Process, _process_b: &dyn Process, ) -> bool

Implementors§