pub struct AppIdAssignerTbfHeader {}
Expand description
Assign AppIDs based on fields in the app’s TBF header.
This uses the ShortId TBF header to assign short IDs to applications. If the
header is not present the application will be assigned a
ShortID::LocallyUnique
ID.
This assigner uses ShortIds as the AppID, so the built-in check for ShortId uniqueness is sufficient.
Trait Implementations§
Source§impl AppUniqueness for AppIdAssignerTbfHeader
impl AppUniqueness for AppIdAssignerTbfHeader
Source§fn 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.Source§fn different_identifier_process(
&self,
_process_binary: &ProcessBinary,
_process: &dyn Process,
) -> bool
fn different_identifier_process( &self, _process_binary: &ProcessBinary, _process: &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§impl Compress for AppIdAssignerTbfHeader
impl Compress for AppIdAssignerTbfHeader
Source§fn to_short_id(&self, process: &ProcessBinary) -> ShortId
fn to_short_id(&self, process: &ProcessBinary) -> ShortId
Auto Trait Implementations§
impl Freeze for AppIdAssignerTbfHeader
impl RefUnwindSafe for AppIdAssignerTbfHeader
impl Send for AppIdAssignerTbfHeader
impl Sync for AppIdAssignerTbfHeader
impl Unpin for AppIdAssignerTbfHeader
impl UnwindSafe for AppIdAssignerTbfHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more