pub enum AccessTier {
Public,
Restricted,
Classified,
}Expand description
Access tier — the read-side gate on a single kernel object.
Ordering: Public < Restricted < Classified. An actor with
clearance T can read every object with tier <= T. Pre-v0.51
actors and objects load with Public and behave exactly as
before — the tier system is purely additive.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for AccessTier
impl Clone for AccessTier
Source§fn clone(&self) -> AccessTier
fn clone(&self) -> AccessTier
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 AccessTier
impl Debug for AccessTier
Source§impl Default for AccessTier
impl Default for AccessTier
Source§fn default() -> AccessTier
fn default() -> AccessTier
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AccessTier
impl<'de> Deserialize<'de> for AccessTier
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for AccessTier
impl Ord for AccessTier
Source§fn cmp(&self, other: &AccessTier) -> Ordering
fn cmp(&self, other: &AccessTier) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AccessTier
impl PartialEq for AccessTier
Source§fn eq(&self, other: &AccessTier) -> bool
fn eq(&self, other: &AccessTier) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AccessTier
impl PartialOrd for AccessTier
Source§impl Serialize for AccessTier
impl Serialize for AccessTier
impl Copy for AccessTier
impl Eq for AccessTier
impl StructuralPartialEq for AccessTier
Auto Trait Implementations§
impl Freeze for AccessTier
impl RefUnwindSafe for AccessTier
impl Send for AccessTier
impl Sync for AccessTier
impl Unpin for AccessTier
impl UnsafeUnpin for AccessTier
impl UnwindSafe for AccessTier
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.