Struct recrypt::api::AuthHash [−]
pub struct AuthHash { /* fields omitted */ }
Methods
impl AuthHash
impl AuthHash
pub fn new(bytes: [u8; 32]) -> Self
pub fn new(bytes: [u8; 32]) -> Self
construct $t from fixed size byte array
pub fn bytes(&self) -> &[u8; 32]
pub fn bytes(&self) -> &[u8; 32]
pub fn new_from_slice(bytes: &[u8]) -> Result<AuthHash, ApiErr>
pub fn new_from_slice(bytes: &[u8]) -> Result<AuthHash, ApiErr>
construct $t from byte slice. Input slice must be exactly the correct length for the type.
Returns
Ok($t) or Err($ApiError::InputWrongSize]
Trait Implementations
impl Clone for AuthHash
impl Clone for AuthHash
fn clone(&self) -> AuthHash
fn clone(&self) -> AuthHash
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for AuthHash
impl Copy for AuthHash
impl Debug for AuthHash
impl Debug for AuthHash
fn fmt(&self, formatter: &mut Formatter) -> Result
fn fmt(&self, formatter: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for AuthHash
impl PartialEq for AuthHash
fn eq(&self, other: &AuthHash) -> bool
fn eq(&self, other: &AuthHash) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for AuthHash
impl Eq for AuthHash