Struct tokenlock::ArcTokenId[][src]

pub struct ArcTokenId(_);

Token that cannot be used to access the contents of a TokenLock, but can be used to create a new TokenLock.

Examples

ArcTokenId can be cloned while ArcToken cannot:

let token = ArcToken::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 ArcTokenId[src]

impl Debug for ArcTokenId[src]

impl Eq for ArcTokenId[src]

impl Hash for ArcTokenId[src]

impl PartialEq<ArcTokenId> for ArcTokenId[src]

impl StructuralEq for ArcTokenId[src]

impl StructuralPartialEq for ArcTokenId[src]

impl Token<ArcTokenId> for ArcToken[src]

impl Token<ArcTokenId> for ArcTokenUnsyncRef<'_>[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.