[][src]Enum uows_crypto::Cipher

pub enum Cipher {
    Key(Vec<u8>),
    Data(Vec<u8>),
}

Variants

Key(Vec<u8>)
Data(Vec<u8>)

Implementations

impl Cipher[src]

pub fn unwrap_key(self) -> Result<Vec<u8>, String>[src]

pub fn unwrap_data(self) -> Result<Vec<u8>, String>[src]

pub fn unwrap(self) -> Vec<u8>[src]

Do NOT call this unless absolutely sure about the enum type. Call [unwrap_key] or [unwrap_data] instead.

pub fn unwrap_to_num_string(self) -> String[src]

pub fn unwrap_to_string_from_dat(self) -> Result<String, String>[src]

Only call this function when you are sure that the enum contains decrypted data and is Cipher::Data

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[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> Same<T> for T

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.