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>,
    },
}

TODO something about BorrowState when using RefCells for Services?

Variants

NotFound

Fields

key: &'a Key
Poisoned

Fields

key: &'a Key
WouldBlock

Fields

key: &'a Key
MismatchedType

Fields

key: &'a Key
expected: &'static str
found: &'static str
CreationError

Fields

key: &'a Key
error: Box<StdError>

Trait Implementations

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

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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

fn fmt(&self, fmt: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

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

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>
1.0.0

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