pub struct CapRecord {
pub id: CapId,
pub provider: ProviderId,
pub object: u64,
pub attrs: CapAttrs,
pub parent: Option<CapId>,
pub refs: u32,
pub revoked: bool,
}Expand description
Provider-side record of a live capability.
Fields§
§id: CapIdCapability id.
provider: ProviderIdProvider that owns the object.
object: u64Object within the provider (module id, tool id, lane id).
attrs: CapAttrsAuthority.
parent: Option<CapId>Parent capability, when this one was derived by attenuation.
refs: u32Outstanding references (client handles plus transfers).
revoked: boolRevoked capabilities are refused even if the id is known.
Implementations§
Trait Implementations§
impl Eq for CapRecord
impl StructuralPartialEq for CapRecord
Auto Trait Implementations§
impl Freeze for CapRecord
impl RefUnwindSafe for CapRecord
impl Send for CapRecord
impl Sync for CapRecord
impl Unpin for CapRecord
impl UnsafeUnpin for CapRecord
impl UnwindSafe for CapRecord
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> 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.