Enum lapin::Error [−][src]
#[non_exhaustive]
pub enum Error {
ChannelsLimitReached,
InvalidProtocolVersion(ProtocolVersion),
InvalidChannel(u16),
InvalidChannelState(ChannelState),
InvalidConnectionState(ConnectionState),
IOError(Arc<Error>),
ParsingError(ParserError),
ProtocolError(AMQPError),
SerialisationError(Arc<GenError>),
}
Expand description
The type of error that can be returned in this crate.
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 (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Tuple Fields of InvalidProtocolVersion
Tuple Fields of InvalidChannel
0: u16
Tuple Fields of InvalidChannelState
0: ChannelState
Tuple Fields of InvalidConnectionState
Tuple Fields of ParsingError
0: ParserError
Tuple Fields of ProtocolError
0: AMQPError
Tuple Fields of SerialisationError
0: Arc<GenError>
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more