Struct tokenlock::RcTokenId[][src]

pub struct RcTokenId(_);

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 Clone for RcTokenId[src]

impl Debug for RcTokenId[src]

impl Eq for RcTokenId[src]

impl Hash for RcTokenId[src]

impl PartialEq<RcTokenId> for RcTokenId[src]

impl StructuralEq for RcTokenId[src]

impl StructuralPartialEq for RcTokenId[src]

impl Token<RcTokenId> for RcToken[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.