pub struct RuntimeSendCap<P>where
P: Permission,{ /* private fields */ }Expand description
A thread-safe revocable capability token.
Created via RuntimeCap::make_send. Unlike RuntimeCap, this implements
Send + Sync, making it usable with std::thread::spawn, tokio::spawn, etc.
Implementations§
Source§impl<P> RuntimeSendCap<P>where
P: Permission,
impl<P> RuntimeSendCap<P>where
P: Permission,
Sourcepub fn try_cap(&self) -> Result<Cap<P>, CapSecError>
pub fn try_cap(&self) -> Result<Cap<P>, CapSecError>
Trait Implementations§
Source§impl<P> Clone for RuntimeSendCap<P>where
P: Permission,
impl<P> Clone for RuntimeSendCap<P>where
P: Permission,
Source§fn clone(&self) -> RuntimeSendCap<P>
fn clone(&self) -> RuntimeSendCap<P>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<P> Send for RuntimeSendCap<P>where
P: Permission,
impl<P> Sync for RuntimeSendCap<P>where
P: Permission,
Auto Trait Implementations§
impl<P> Freeze for RuntimeSendCap<P>
impl<P> RefUnwindSafe for RuntimeSendCap<P>where
P: RefUnwindSafe,
impl<P> Unpin for RuntimeSendCap<P>where
P: Unpin,
impl<P> UnsafeUnpin for RuntimeSendCap<P>
impl<P> UnwindSafe for RuntimeSendCap<P>where
P: UnwindSafe,
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