Struct tokenlock::RcToken[][src]

pub struct RcToken(_);

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

impl RcToken[src]

pub fn new() -> Self[src]

pub fn id(&self) -> RcTokenId[src]

Construct an RcTokenId that equates to self.

Trait Implementations

impl Debug for RcToken[src]

impl Default for RcToken[src]

impl Eq for RcToken[src]

impl Hash for RcToken[src]

impl PartialEq<RcToken> for RcToken[src]

impl StructuralEq for RcToken[src]

impl StructuralPartialEq for RcToken[src]

impl Token<RcTokenId> for RcToken[src]

impl Unsync 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, 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.