pub struct EffectiveAuthority { /* private fields */ }Expand description
Fully diminished authority and requirements for one cell.
Implementations§
Source§impl EffectiveAuthority
impl EffectiveAuthority
Sourcepub fn derive(
ceiling: &CapabilitySet,
patches: impl IntoIterator<Item = AuthorityPolicyPatch>,
) -> Self
pub fn derive( ceiling: &CapabilitySet, patches: impl IntoIterator<Item = AuthorityPolicyPatch>, ) -> Self
Derives cell authority from the immutable open-time ceiling.
Sourcepub fn capabilities(&self) -> &CapabilitySet
pub fn capabilities(&self) -> &CapabilitySet
Returns the active diminished capability set.
Sourcepub fn required(&self) -> &CapabilitySet
pub fn required(&self) -> &CapabilitySet
Returns the accumulated required capability set.
Sourcepub fn denied(&self) -> &CapabilitySet
pub fn denied(&self) -> &CapabilitySet
Returns the accumulated denial set.
Sourcepub const fn digest(&self) -> AuthorityDigest
pub const fn digest(&self) -> AuthorityDigest
Returns the deterministic digest of the active authority.
Sourcepub fn first_missing_requirement(&self) -> Option<CapabilityName>
pub fn first_missing_requirement(&self) -> Option<CapabilityName>
Returns the first missing requirement in stable name order.
Trait Implementations§
Source§impl Clone for EffectiveAuthority
impl Clone for EffectiveAuthority
Source§fn clone(&self) -> EffectiveAuthority
fn clone(&self) -> EffectiveAuthority
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 EffectiveAuthority
impl Debug for EffectiveAuthority
impl Eq for EffectiveAuthority
Source§impl PartialEq for EffectiveAuthority
impl PartialEq for EffectiveAuthority
impl StructuralPartialEq for EffectiveAuthority
Auto Trait Implementations§
impl Freeze for EffectiveAuthority
impl RefUnwindSafe for EffectiveAuthority
impl Send for EffectiveAuthority
impl Sync for EffectiveAuthority
impl Unpin for EffectiveAuthority
impl UnsafeUnpin for EffectiveAuthority
impl UnwindSafe for EffectiveAuthority
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