Trait kernel::process_checker::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.

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§