pub struct CapDescriptor {
pub id: CapId,
pub methods: BTreeSet<String>,
pub budget: Budget,
pub read_only: bool,
pub redact: bool,
pub path_scope: Option<String>,
}Expand description
A capability descriptor travelling with an envelope.
Fields§
§id: CapIdCapability id.
methods: BTreeSet<String>Methods the capability grants.
budget: BudgetBudget ceilings.
read_only: boolRead-only flag.
redact: boolRedaction flag.
path_scope: Option<String>Optional path scope.
Implementations§
Source§impl CapDescriptor
impl CapDescriptor
Sourcepub fn from_attrs(id: CapId, attrs: &CapAttrs) -> Self
pub fn from_attrs(id: CapId, attrs: &CapAttrs) -> Self
Build a descriptor from attributes.
Trait Implementations§
Source§impl Clone for CapDescriptor
impl Clone for CapDescriptor
Source§impl Debug for CapDescriptor
impl Debug for CapDescriptor
Source§impl PartialEq for CapDescriptor
impl PartialEq for CapDescriptor
impl StructuralPartialEq for CapDescriptor
Auto Trait Implementations§
impl Freeze for CapDescriptor
impl RefUnwindSafe for CapDescriptor
impl Send for CapDescriptor
impl Sync for CapDescriptor
impl Unpin for CapDescriptor
impl UnsafeUnpin for CapDescriptor
impl UnwindSafe for CapDescriptor
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