[−][src]Enum amiquip::ErrorKind
Specific error cases returned by amiquip.
Variants
UrlParseError(UrlParseError)
URL parsing failed.
TlsFeatureNotEnabled
A TLS connection was requested (e.g., via URL), but the amiquip was built without TLS support.
InvalidUrl(Url)
URL could not be decoded into an AMQP or AMQPS connection string.
InsecureUrl
An insecure URL was supplied to Connection::open
,
which only allows amqps://...
URLs.
UnexpectedSocketClose
The underlying socket was closed.
MalformedFrame
We received data that could not be parsed as an AMQP frame.
Io
An I/O error occurred; the underlying cause will be an io::Error
.
TlsHandshake
The TLS handshake failed.
TlsError(String)
Error from underlying TLS implementation.
UnsupportedAuthMechanism(String)
The server does not support the requested auth mechanism.
UnsupportedLocale(String)
The server does not support the requested locale.
FrameMaxTooSmall(u32)
The requested frame size is smaller than the minimum required by AMQP.
ConnectionTimeout
Timeout occurred while performing the initial TCP connection.
SaslSecureNotSupported
The server requested a Secure/Secure-Ok exchange, which are currently unsupported.
InvalidCredentials
The supplied authentication credentials were not accepted by the server.
MissedServerHeartbeats
The server missed too many successive heartbeats.
ServerClosedConnection(u16, String)
The server closed the connection with the given reply code and text.
ClientClosedConnection
The client closed the connection.
ServerClosedChannel(u16, u16, String)
The server closed the given channel with the given reply code and text.
ClientClosedChannel
The client closed the channel.
EventLoopClientDropped
The I/O loop attempted to send a message to a caller that did not exist. This indicates either a bug in amiquip or a connection that is in a bad state and in the process of tearing down.
EventLoopDropped
The I/O loop has dropped the sending side of a channel, typically because it has exited due to another error.
FrameUnexpected
We received a valid AMQP frame but not one we expected; e.g., receiving an incorrect response to an AMQP method call.
ForkFailed
Forking the I/O thread failed.
ExhaustedChannelIds
No more channels can be opened because there are already
channel_max
channels open.
An explicit channel ID was requested, but that channel is unavailable for use (e.g., because there is another open channel with the same ID).
ClientException
The client sent an AMQP exception to the server and closed the connection.
ReceivedFrameWithBogusChannelId(u16)
The server sent frames for a channel ID we don't know about.
IoThreadPanic
The I/O thread panicked.
DuplicateConsumerTag(u16, String)
The server sent us a consumer tag that is equal to another consumer tag we already have on the same channel.
UnknownConsumerTag(u16, String)
The server sent us a Delivery
for a channel we don't know about.
Trait Implementations
impl PartialEq<ErrorKind> for ErrorKind
[src]
impl Clone for ErrorKind
[src]
fn clone(&self) -> ErrorKind
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<ErrorKind> for Error
[src]
impl Display for ErrorKind
[src]
impl Debug for ErrorKind
[src]
impl Fail for ErrorKind
[src]
fn name(&self) -> Option<&str>
[src]
fn cause(&self) -> Option<&dyn Fail>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
default fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
D: Display + Send + Sync + 'static,
Provides context for this failure. Read more
default fn compat(self) -> Compat<Self>
[src]
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more
Auto Trait Implementations
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsFail for T where
T: Fail,
[src]
T: Fail,
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
[src]
E: 'static + Error + Send + Sync,
default fn name(&self) -> Option<&str>
[src]
Returns the "name" of the error. Read more
default fn cause(&self) -> Option<&(dyn Fail + 'static)>
[src]
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
default fn backtrace(&self) -> Option<&Backtrace>
[src]
Returns a reference to the Backtrace
carried by this failure, if it carries one. Read more
default fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
D: Display + Send + Sync + 'static,
Provides context for this failure. Read more
default fn compat(self) -> Compat<Self>
[src]
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more