[][src]Enum amiquip::ErrorKind

pub enum ErrorKind {
    UrlParseError(UrlParseError),
    TlsFeatureNotEnabled,
    InvalidUrl(Url),
    InsecureUrl,
    UnexpectedSocketClose,
    MalformedFrame,
    Io,
    TlsHandshake,
    TlsError(String),
    UnsupportedAuthMechanism(String),
    UnsupportedLocale(String),
    FrameMaxTooSmall(u32),
    ConnectionTimeout,
    SaslSecureNotSupported,
    InvalidCredentials,
    MissedServerHeartbeats,
    ServerClosedConnection(u16String),
    ClientClosedConnection,
    ServerClosedChannel(u16u16String),
    ClientClosedChannel,
    EventLoopClientDropped,
    EventLoopDropped,
    FrameUnexpected,
    ForkFailed,
    ExhaustedChannelIds,
    UnavailableChannelId(u16),
    ClientException,
    ReceivedFrameWithBogusChannelId(u16),
    IoThreadPanic,
    DuplicateConsumerTag(u16String),
    UnknownConsumerTag(u16String),
    // some variants omitted
}

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(u16String)

The server closed the connection with the given reply code and text.

ClientClosedConnection

The client closed the connection.

ServerClosedChannel(u16u16String)

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.

UnavailableChannelId(u16)

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(u16String)

The server sent us a consumer tag that is equal to another consumer tag we already have on the same channel.

UnknownConsumerTag(u16String)

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]

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]

default fn context<D>(self, context: D) -> Context<D> where
    D: Display + Send + Sync + 'static, 
[src]

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

impl Send for ErrorKind

impl Sync for ErrorKind

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsFail for T where
    T: Fail
[src]

impl<E> Fail for E where
    E: 'static + Error + Send + Sync
[src]

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]

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