Enum lasso::LassoErrorKind[][src]

pub enum LassoErrorKind {
    MemoryLimitReached,
    KeySpaceExhaustion,
    FailedAllocation,
}

The kind of error that occurred

Variants

MemoryLimitReached

A memory limit set using MemoryLimits was reached, and no more memory could be allocated

KeySpaceExhaustion

A Key implementation returned None, meaning it could not produce any more keys

FailedAllocation

A memory allocation failed

Implementations

impl LassoErrorKind[src]

pub fn is_memory_limit(self) -> bool[src]

A memory limit set using MemoryLimits was reached, and no more memory could be allocated

pub fn is_keyspace_exhaustion(self) -> bool[src]

A Key implementation returned None, meaning it could not produce any more keys

pub fn is_failed_alloc(self) -> bool[src]

A memory allocation failed

Trait Implementations

impl Clone for LassoErrorKind[src]

impl Copy for LassoErrorKind[src]

impl Debug for LassoErrorKind[src]

impl Display for LassoErrorKind[src]

impl Eq for LassoErrorKind[src]

impl Hash for LassoErrorKind[src]

impl PartialEq<LassoErrorKind> for LassoErrorKind[src]

impl StructuralEq for LassoErrorKind[src]

impl StructuralPartialEq for LassoErrorKind[src]

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> CallHasher for T where
    T: Hash

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.