Struct lockchain_core::users::Token[][src]

pub struct Token { /* fields omitted */ }

An authentication token that can be compared in constant time

 
use lockchain_core::users::auth::Token;
let t1 = Token::new();
let t2 = Token::new();
 
// Will fail, but no expose failure length
assert_eq!(t1, t2);

Methods

impl Token
[src]

Trait Implementations

impl PartialEq for Token
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Token
[src]

Auto Trait Implementations

impl Send for Token

impl Sync for Token