pub enum ErrorKind {
InvalidMethod(AMQPClass),
InvalidChannel(u16),
ConnectionRefused,
NotConnected,
UnexpectedReply,
PreconditionFailed,
ChannelLimitReached,
InvalidConnectionState(ConnectionState),
ParsingError(String),
SerialisationError(GenError),
IOError(Error),
IoLoopError,
// some variants omitted
}
๐Deprecated: use lapin 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ยง
InvalidMethod(AMQPClass)
๐Deprecated: use lapin instead
InvalidChannel(u16)
๐Deprecated: use lapin instead
ConnectionRefused
๐Deprecated: use lapin instead
NotConnected
๐Deprecated: use lapin instead
UnexpectedReply
๐Deprecated: use lapin instead
PreconditionFailed
๐Deprecated: use lapin instead
ChannelLimitReached
๐Deprecated: use lapin instead
InvalidConnectionState(ConnectionState)
๐Deprecated: use lapin instead
ParsingError(String)
๐Deprecated: use lapin instead
SerialisationError(GenError)
๐Deprecated: use lapin instead
IOError(Error)
๐Deprecated: use lapin instead
IoLoopError
๐Deprecated: use lapin instead
Trait Implementationsยง
Sourceยงimpl Fail for ErrorKind
impl Fail for ErrorKind
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 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