pub struct CapHandle { /* private fields */ }Expand description
A client-side capability handle.
Cloning a handle adds a reference; dropping the last handle notifies the
provider (automatic lifetime, RPROPOSAL §3).
Implementations§
Trait Implementations§
Source§impl Clone for CapHandle
impl Clone for CapHandle
Source§fn clone(&self) -> Self
fn clone(&self) -> Self
Cloning an owning handle retains the capability: the kernel increments the reference count and both handles must drop before the provider is notified. Cloning a borrowed handle stays borrowed — it never retained a reference, so it must not create one.
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for CapHandle
impl !Send for CapHandle
impl !Sync for CapHandle
impl !UnwindSafe for CapHandle
impl Freeze for CapHandle
impl Unpin for CapHandle
impl UnsafeUnpin for CapHandle
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