pub struct RcToken(/* private fields */);
Available on crate feature
alloc
only.Expand description
An Rc
-based unforgeable token used to access the contents of a
TokenLock
.
This type lacks a Clone
implementation to ensure exclusive access to
TokenLock
.
Implementations§
Trait Implementations§
impl Eq for RcToken
impl StructuralPartialEq for RcToken
impl Unsync for RcToken
Auto Trait Implementations§
impl Freeze for RcToken
impl RefUnwindSafe for RcToken
impl !Send for RcToken
impl !Sync for RcToken
impl Unpin for RcToken
impl UnwindSafe for RcToken
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