pub struct SecurityLabel {
pub type_name: &'static str,
pub role: &'static str,
pub level: MlsLevel,
}Expand description
Full security label combining type, role, and MLS level.
Uses &'static str references to avoid heap allocations.
Fields§
§type_name: &'static strType/domain name (e.g. “system_t”, “user_t”)
role: &'static strRole (e.g. “system_r”, “user_r”)
level: MlsLevelMLS security level
Implementations§
Trait Implementations§
Source§impl Clone for SecurityLabel
impl Clone for SecurityLabel
Source§fn clone(&self) -> SecurityLabel
fn clone(&self) -> SecurityLabel
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SecurityLabel
impl Debug for SecurityLabel
Source§impl PartialEq for SecurityLabel
impl PartialEq for SecurityLabel
impl Copy for SecurityLabel
impl Eq for SecurityLabel
impl StructuralPartialEq for SecurityLabel
Auto Trait Implementations§
impl Freeze for SecurityLabel
impl RefUnwindSafe for SecurityLabel
impl Send for SecurityLabel
impl Sync for SecurityLabel
impl Unpin for SecurityLabel
impl UnwindSafe for SecurityLabel
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)