pub enum ErrorKind {
UriParsingError(String),
InvalidDomainName(String),
ConnectionFailed(Error),
ProtocolError(Error),
// some variants omitted
}๐Deprecated: use lapin directly instead
Expand description
The different kinds of errors that can be reported.
Even though we expose the complete enumeration of possible error variants, it is not considered stable to exhaustively match on this enumeration: do it at your own risk.
Variantsยง
UriParsingError(String)
๐Deprecated: use lapin directly instead
Failure to parse an Uri
InvalidDomainName(String)
๐Deprecated: use lapin directly instead
Failure to resolve a domain name
ConnectionFailed(Error)
๐Deprecated: use lapin directly instead
Failure to connect
ProtocolError(Error)
๐Deprecated: use lapin directly instead
Error from lapin_futures
Trait Implementationsยง
Sourceยงimpl Fail for ErrorKind
impl Fail for ErrorKind
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 ErrorKind
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
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