pub struct RcTokenId(_);
Available on crate feature
alloc
only.Expand description
Token that cannot be used to access the contents of a TokenLock
, but can
be used to create a new TokenLock
.
Examples
RcTokenId
can be cloned while RcToken
cannot:
let token = RcToken::new();
let token_id = token.id();
let lock1 = TokenLock::new(token_id.clone(), 1);
let lock2 = TokenLock::new(token_id, 2);
Trait Implementations
impl Eq for RcTokenId
impl StructuralEq for RcTokenId
impl StructuralPartialEq for RcTokenId
Auto Trait Implementations
impl RefUnwindSafe for RcTokenId
impl !Send for RcTokenId
impl !Sync for RcTokenId
impl Unpin for RcTokenId
impl UnwindSafe for RcTokenId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more