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.