[][src]Struct web_ui::ticket::Key

pub struct Key {
    key: GenericArray<u8, <Hmac<Sha512Trunc224> as Mac>::KeySize>,
    offset: u128,
    epoch: Instant,
}

Fields

key: GenericArray<u8, <Hmac<Sha512Trunc224> as Mac>::KeySize>offset: u128epoch: Instant

Methods

impl Key[src]

pub fn new() -> Result<Key, Error>[src]

fn encapsulate(&self, msg: &[u8]) -> String[src]

fn decapsulate(&self, both: &str) -> Result<Vec<u8>, DecapError>[src]

pub fn make_ticket(&self) -> String[src]

pub fn decode_ticket(&self, both: &str) -> Result<Duration, DecapError>[src]

Auto Trait Implementations

impl RefUnwindSafe for Key

impl Send for Key

impl Sync for Key

impl Unpin for Key

impl UnwindSafe for Key

Blanket Implementations

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

impl<T, I> AsResult<T, I> for T where
    I: Input
[src]

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

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

impl<T> From<T> for T[src]

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

impl<T> IntoCollection<T> for T[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any
[src]