pub struct Error { /* private fields */ }๐Deprecated: use lapin directly instead
Expand description
The type of error that can be returned in this crate.
Instead of implementing the Error trait provided by the standard library,
it implemented the Fail trait provided by the failure crate. Doing so
means that this type guaranteed to be both sendable and usable across
threads, and that youโll be able to use the downcasting feature of the
failure::Error type.
Implementationsยง
Trait Implementationsยง
Sourceยงimpl Fail for Error
impl Fail for Error
Sourceยงfn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
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 !Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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