pub struct DispatchLabel {
pub level: &'static str,
pub assurance: &'static str,
pub compartment_bits: Vec<u32>,
}Expand description
A parsed $dispatchMac label: the axis values plus the resolved,
canonical-ordered compartment bits.
Fields§
§level: &'static str§assurance: &'static str§compartment_bits: Vec<u32>Compartment bits in ascending order (canonical form).
Implementations§
Source§impl DispatchLabel
impl DispatchLabel
Sourcepub fn to_canonical_text(&self, map: &InitialLabelMap) -> Option<String>
pub fn to_canonical_text(&self, map: &InitialLabelMap) -> Option<String>
Render back to the canonical annotation text (round-trip identity).
Sourcepub fn is_system_low(&self) -> bool
pub fn is_system_low(&self) -> bool
Whether this is exactly the system-low label.
Trait Implementations§
Source§impl Clone for DispatchLabel
impl Clone for DispatchLabel
Source§fn clone(&self) -> DispatchLabel
fn clone(&self) -> DispatchLabel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DispatchLabel
impl Debug for DispatchLabel
Source§impl PartialEq for DispatchLabel
impl PartialEq for DispatchLabel
Source§fn eq(&self, other: &DispatchLabel) -> bool
fn eq(&self, other: &DispatchLabel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DispatchLabel
impl StructuralPartialEq for DispatchLabel
Auto Trait Implementations§
impl Freeze for DispatchLabel
impl RefUnwindSafe for DispatchLabel
impl Send for DispatchLabel
impl Sync for DispatchLabel
impl Unpin for DispatchLabel
impl UnsafeUnpin for DispatchLabel
impl UnwindSafe for DispatchLabel
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