Enum ioc::Error [] [src]

pub enum Error<'a, Key: 'a> {
    NotFound {
        key: &'a Key,
    },
    Poisoned {
        key: &'a Key,
    },
    WouldBlock {
        key: &'a Key,
    },
    MismatchedType {
        key: &'a Key,
        expected: &'static str,
        found: &'static str,
    },
    CreationError {
        key: &'a Key,
        error: Box<StdError>,
    },
}

Variants

Fields of NotFound

Fields of Poisoned

Fields of WouldBlock

Fields of MismatchedType

Fields of CreationError

Trait Implementations

impl<'a, Key: Debug + 'a> Debug for Error<'a, Key>
[src]

Formats the value using the given formatter.

impl<'a, Key> Display for Error<'a, Key> where
    Key: Key
[src]

Formats the value using the given formatter. Read more

impl<'a, Key> StdError for Error<'a, Key> where
    Key: Key
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl<'a, Key, X> From<(&'a Key, PoisonError<X>)> for Error<'a, Key> where
    Key: Key
[src]

Performs the conversion.

impl<'a, Key, X> From<(&'a Key, TryLockError<X>)> for Error<'a, Key> where
    Key: Key
[src]

Performs the conversion.