pub struct DualKeySendCap<P: Permission> { /* private fields */ }Expand description
A thread-safe dual-authorization capability token.
Created via DualKeyCap::make_send. Unlike DualKeyCap, this implements
Send + Sync.
Implementations§
Source§impl<P: Permission> DualKeySendCap<P>
impl<P: Permission> DualKeySendCap<P>
Trait Implementations§
Source§impl<P: Permission> CapProvider<P> for DualKeySendCap<P>
impl<P: Permission> CapProvider<P> for DualKeySendCap<P>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<P>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<P>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl<P: Permission> Clone for DualKeySendCap<P>
impl<P: Permission> Clone for DualKeySendCap<P>
impl<P: Permission> Send for DualKeySendCap<P>
impl<P: Permission> Sync for DualKeySendCap<P>
Auto Trait Implementations§
impl<P> Freeze for DualKeySendCap<P>
impl<P> RefUnwindSafe for DualKeySendCap<P>where
P: RefUnwindSafe,
impl<P> Unpin for DualKeySendCap<P>where
P: Unpin,
impl<P> UnsafeUnpin for DualKeySendCap<P>
impl<P> UnwindSafe for DualKeySendCap<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