pub struct MlsLevel { /* private fields */ }Expand description
Security level in MLS (Multi-Level Security), consisting of a sensitivity and a set of categories.
Implementations§
Source§impl MlsLevel
impl MlsLevel
pub fn category_spans(&self) -> impl Iterator<Item = IdSpan<CategoryId>> + '_
pub fn to_string(&self, parsed_policy: &ParsedPolicy) -> Vec<u8> ⓘ
Source§impl MlsLevel
impl MlsLevel
Sourcepub fn new(sensitivity: SensitivityId, categories: IdSet<CategoryId>) -> Self
pub fn new(sensitivity: SensitivityId, categories: IdSet<CategoryId>) -> Self
Constructs a new MlsLevel.
Sourcepub fn sensitivity(&self) -> SensitivityId
pub fn sensitivity(&self) -> SensitivityId
Returns the sensitivity level.
Sourcepub fn categories(&self) -> &IdSet<CategoryId>
pub fn categories(&self) -> &IdSet<CategoryId>
Returns the set of categories.
Sourcepub fn category_ids(&self) -> impl Iterator<Item = CategoryId> + use<'_>
pub fn category_ids(&self) -> impl Iterator<Item = CategoryId> + use<'_>
Returns an iterator over the category IDs.
Trait Implementations§
Source§impl Parse for MlsLevel
impl Parse for MlsLevel
impl Eq for MlsLevel
impl StructuralPartialEq for MlsLevel
Auto Trait Implementations§
impl Freeze for MlsLevel
impl RefUnwindSafe for MlsLevel
impl Send for MlsLevel
impl Sync for MlsLevel
impl Unpin for MlsLevel
impl UnsafeUnpin for MlsLevel
impl UnwindSafe for MlsLevel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more