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]
impl TokenTrait Implementations
impl PartialEq for Token[src]
impl PartialEq for Tokenfn eq(&self, other: &Self) -> bool[src]
fn eq(&self, other: &Self) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for Token[src]
impl Eq for Token