pub struct CapabilitySet {
pub allow: BTreeSet<Capability>,
pub deny: BTreeSet<Capability>,
}Expand description
Aggregates allow and deny capability sets for a given policy scope.
Fields§
§allow: BTreeSet<Capability>Capabilities explicitly allowed.
deny: BTreeSet<Capability>Capabilities explicitly denied.
Trait Implementations§
Source§impl Clone for CapabilitySet
impl Clone for CapabilitySet
Source§fn clone(&self) -> CapabilitySet
fn clone(&self) -> CapabilitySet
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 CapabilitySet
impl Debug for CapabilitySet
Source§impl Default for CapabilitySet
impl Default for CapabilitySet
Source§fn default() -> CapabilitySet
fn default() -> CapabilitySet
Returns the “default value” for a type. Read more
Source§impl PartialEq for CapabilitySet
impl PartialEq for CapabilitySet
Source§fn eq(&self, other: &CapabilitySet) -> bool
fn eq(&self, other: &CapabilitySet) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CapabilitySet
Auto Trait Implementations§
impl Freeze for CapabilitySet
impl RefUnwindSafe for CapabilitySet
impl Send for CapabilitySet
impl Sync for CapabilitySet
impl Unpin for CapabilitySet
impl UnsafeUnpin for CapabilitySet
impl UnwindSafe for CapabilitySet
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