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§
sourcefn different_identifier(
&self,
process_a: &ProcessBinary,
process_b: &ProcessBinary,
) -> bool
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.
sourcefn different_identifier_process(
&self,
process_a: &ProcessBinary,
process_b: &dyn Process,
) -> bool
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.
sourcefn different_identifier_processes(
&self,
process_a: &dyn Process,
process_b: &dyn Process,
) -> bool
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 ()
impl AppUniqueness for ()
Default implementation.