[][src]Enum schemeguardian::errors::SGError

pub enum SGError {
    DefaultError,
    BrancaError(Error),
    SledError(Error),
    BincodeError(Error),
    StrUtf8Error(Utf8Error),
    StringUtf8Error(FromUtf8Error),
    TryFromIntError(TryFromIntError),
    Argon2Error(Error),
    PassphraseEmpty,
    PassphraseTooLarge,
}

SGError is the main error type

Variants

DefaultError

SGError Default Error type

BrancaError(Error)

Branca Error type branca::errors::Error

SledError(Error)

Sled errors for Pagecache

BincodeError(Error)

Bincode error handling for bincode::Error errors

StrUtf8Error(Utf8Error)

Str error handling for str::FromUtf8Error errors

StringUtf8Error(FromUtf8Error)

String error handling for string::FromUtf8Error errors

TryFromIntError(TryFromIntError)

String error handling for num::TryFromIntError errors

Argon2Error(Error)

String error handling for argon2::error::Error errors

PassphraseEmpty

Error when passphrase length is zero in size

PassphraseTooLarge

Error when passphrase length is larger that 1KB (input.len() / 1024) in size to prevent DOS attack

Trait Implementations

impl From<Error> for SGError[src]

impl From<Error> for SGError[src]

impl From<Box<ErrorKind>> for SGError[src]

impl From<Utf8Error> for SGError[src]

impl From<FromUtf8Error> for SGError[src]

impl From<TryFromIntError> for SGError[src]

impl From<Error> for SGError[src]

impl Default for SGError[src]

impl Display for SGError[src]

impl Debug for SGError[src]

impl Fail for SGError[src]

Auto Trait Implementations

impl Send for SGError

impl Sync for SGError

impl Unpin for SGError

impl !UnwindSafe for SGError

impl !RefUnwindSafe for SGError

Blanket Implementations

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> AsFail for T where
    T: Fail
[src]

impl<E> Fail for E where
    E: 'static + Error + Send + Sync
[src]