pub struct Error<E: Fail, L: Location> {
pub error: E,
pub location: L,
}Expand description
Location-annotated error
Location-annotated io::Error with a user-friendly Display implementation
Fieldsยง
ยงerror: EError
location: LLocation at which error occurred
Trait Implementationsยง
Sourceยงimpl<E: Fail, L: Location> Fail for Error<E, L>
impl<E: Fail, L: Location> Fail for Error<E, L>
Sourceยงfn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Sourceยงfn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read moreAuto Trait Implementationsยง
impl<E, L> Freeze for Error<E, L>
impl<E, L> RefUnwindSafe for Error<E, L>where
E: RefUnwindSafe,
L: RefUnwindSafe,
impl<E, L> Send for Error<E, L>
impl<E, L> Sync for Error<E, L>
impl<E, L> Unpin for Error<E, L>
impl<E, L> UnwindSafe for Error<E, L>where
E: UnwindSafe,
L: UnwindSafe,
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more