[][src]Struct crypto::mac::MacResult

pub struct MacResult { /* fields omitted */ }

A MacResult wraps a Mac code and provides a safe Eq implementation that runs in fixed time.

Methods

impl MacResult
[src]

Create a new MacResult.

Create a new MacResult taking ownership of the specified code value.

Get the code value. Be very careful using this method, since incorrect use of the code value may permit timing attacks which defeat the security provided by the Mac function.

Trait Implementations

impl PartialEq<MacResult> for MacResult
[src]

This method tests for !=.

impl Eq for MacResult
[src]

Auto Trait Implementations

impl Send for MacResult

impl Sync for MacResult

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]