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
NotFound
Fields of NotFound
key: &'a Key |
Poisoned
Fields of Poisoned
key: &'a Key |
WouldBlock
Fields of WouldBlock
key: &'a Key |
MismatchedType
Fields of MismatchedType
key: &'a Key | |
expected: &'static str | |
found: &'static str |
CreationError
Fields of CreationError
key: &'a Key | |
error: Box<StdError> |
Trait Implementations
impl<'a, Key: Debug + 'a> Debug for Error<'a, Key>
[src]
impl<'a, Key> Display for Error<'a, Key> where
Key: Key,
[src]
Key: Key,
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<'a, Key> StdError for Error<'a, Key> where
Key: Key,
[src]
Key: Key,
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
impl<'a, Key, X> From<(&'a Key, PoisonError<X>)> for Error<'a, Key> where
Key: Key,
[src]
Key: Key,
fn from((key, _): (&'a Key, PoisonError<X>)) -> Self
Performs the conversion.
impl<'a, Key, X> From<(&'a Key, TryLockError<X>)> for Error<'a, Key> where
Key: Key,
[src]
Key: Key,
fn from((key, err): (&'a Key, TryLockError<X>)) -> Self
Performs the conversion.