Trait std::error::FromErrorStable
[-]
[+]
[src]
pub trait FromError<E> {
fn from_error(err: E) -> Self;
}A trait for types that can be converted from a given error type E.
Required Methods
fn from_error(err: E) -> Self
Perform the conversion.
Implementors
impl<E> FromError<E> for Eimpl<'a, E> FromError<E> for Box<Error + 'a> where E: 'a, E: Errorimpl<T> FromError<PoisonError<T>> for TryLockError<T>