[][src]Trait tokenlock::Token

pub unsafe trait Token<I> {
    fn eq_id(&self, id: &I) -> bool;
}

Trait for an unforgeable token used to access the contents of a TokenLock.

Safety

Given two distinct instances of T: Token x and y, x.eq_id(i) && y.eq_id(i) must not be true for any i.

Required methods

fn eq_id(&self, id: &I) -> bool

Loading content...

Implementors

impl Token<ArcTokenId> for ArcToken[src]

impl Token<RcTokenId> for RcToken[src]

Loading content...