pub struct CapabilityLease { /* private fields */ }Implementations§
Source§impl CapabilityLease
impl CapabilityLease
pub fn id(&self) -> CapabilityId
pub fn generation(&self) -> CapabilityGeneration
Sourcepub fn validate(
&self,
session_generation: SessionGeneration,
kind: CapabilityKind,
) -> Result<(), CapabilityError>
pub fn validate( &self, session_generation: SessionGeneration, kind: CapabilityKind, ) -> Result<(), CapabilityError>
Validate a guest-visible alias against the live registry row before an operation reaches its backend.
pub fn set_referenced(&self, referenced: bool) -> Result<(), CapabilityError>
pub fn transition(&self, to: CapabilityLifecycle) -> Result<(), CapabilityError>
Trait Implementations§
Source§impl Debug for CapabilityLease
impl Debug for CapabilityLease
Source§impl Drop for CapabilityLease
impl Drop for CapabilityLease
Auto Trait Implementations§
impl Freeze for CapabilityLease
impl RefUnwindSafe for CapabilityLease
impl Send for CapabilityLease
impl Sync for CapabilityLease
impl Unpin for CapabilityLease
impl UnsafeUnpin for CapabilityLease
impl UnwindSafe for CapabilityLease
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