[][src]Enum amiquip::Error

pub enum Error {
    UrlParseError {
        source: ParseError,
    },
    TlsFeatureNotEnabled,
    InsecureUrl {
        url: Url,
    },
    UnexpectedSocketClose,
    IoErrorReadingSocket {
        source: Error,
    },
    IoErrorWritingSocket {
        source: Error,
    },
    MalformedFrame,
    UrlNoSocketAddrs {
        url: Url,
    },
    ResolveUrlToSocketAddr {
        url: Url,
        source: Error,
    },
    FailedToConnect {
        url: Url,
        source: Error,
    },
    SpecifyUrlPort {
        url: Url,
    },
    InvalidUrlScheme {
        url: Url,
    },
    UrlMissingDomain {
        url: Url,
    },
    ExtraUrlPathSegments {
        url: Url,
    },
    UrlParseHeartbeat {
        url: Url,
        source: ParseIntError,
    },
    UrlParseChannelMax {
        url: Url,
        source: ParseIntError,
    },
    UrlParseConnectionTimeout {
        url: Url,
        source: ParseIntError,
    },
    UrlInvalidAuthMechanism {
        url: Url,
        mechanism: String,
    },
    UrlUnsupportedParameter {
        url: Url,
        parameter: String,
    },
    CreatePollHandle {
        source: Error,
    },
    RegisterWithPollHandle {
        source: Error,
    },
    DeregisterWithPollHandle {
        source: Error,
    },
    FailedToPoll {
        source: Error,
    },
    TlsHandshake {
        source: Error,
    },
    CreateTlsConnector {
        source: Error,
    },
    UnsupportedAuthMechanism {
        available: String,
        requested: String,
    },
    UnsupportedLocale {
        available: String,
        requested: String,
    },
    FrameMaxTooSmall {
        min: u32,
        requested: u32,
    },
    ConnectionTimeout,
    SaslSecureNotSupported,
    InvalidCredentials,
    MissedServerHeartbeats,
    ServerClosedConnection {
        code: u16,
        message: String,
    },
    ClientClosedConnection,
    ServerClosedChannel {
        channel_id: u16,
        code: u16,
        message: String,
    },
    ClientClosedChannel,
    EventLoopClientDropped,
    EventLoopDropped,
    FrameUnexpected,
    ForkFailed {
        source: Error,
    },
    ExhaustedChannelIds,
    UnavailableChannelId {
        channel_id: u16,
    },
    ClientException,
    ReceivedFrameWithBogusChannelId {
        channel_id: u16,
    },
    IoThreadPanic,
    DuplicateConsumerTag {
        channel_id: u16,
        consumer_tag: String,
    },
    UnknownConsumerTag {
        channel_id: u16,
        consumer_tag: String,
    },
    // some variants omitted
}

Specific error cases returned by amiquip.

Variants

UrlParseError

URL parsing failed.

Fields of UrlParseError

source: ParseError
TlsFeatureNotEnabled

A TLS connection was requested (e.g., via URL), but the amiquip was built without TLS support.

InsecureUrl

An insecure URL was supplied to Connection::open, which only allows amqps://... URLs.

Fields of InsecureUrl

url: Url
UnexpectedSocketClose

The underlying socket was closed.

IoErrorReadingSocket

An I/O error occurred while reading from the socket.

Fields of IoErrorReadingSocket

source: Error
IoErrorWritingSocket

An I/O error occurred while writing from the socket.

Fields of IoErrorWritingSocket

source: Error
MalformedFrame

We received data that could not be parsed as an AMQP frame.

UrlNoSocketAddrs

Failed to resolve a URL into an IP address (or addresses).

Fields of UrlNoSocketAddrs

url: Url
ResolveUrlToSocketAddr

Error resolving a URL into an IP address (or addresses).

Fields of ResolveUrlToSocketAddr

url: Urlsource: Error
FailedToConnect

Failed to open TCP connection.

Fields of FailedToConnect

url: Urlsource: Error
SpecifyUrlPort

Failed to set the port on a URL.

Fields of SpecifyUrlPort

url: Url
InvalidUrlScheme

Invalid scheme for URL.

Fields of InvalidUrlScheme

url: Url
UrlMissingDomain

URL is missing domain.

Fields of UrlMissingDomain

url: Url
ExtraUrlPathSegments

URL contains extra path segments.

Fields of ExtraUrlPathSegments

url: Url
UrlParseHeartbeat

Could not parse heartbeat parameter of URL.

Fields of UrlParseHeartbeat

url: Urlsource: ParseIntError
UrlParseChannelMax

Could not parse channel_max parameter of URL.

Fields of UrlParseChannelMax

url: Urlsource: ParseIntError
UrlParseConnectionTimeout

Could not parse connection_timeout parameter of URL.

Fields of UrlParseConnectionTimeout

url: Urlsource: ParseIntError
UrlInvalidAuthMechanism

Invalid auth mechanism requested in URL.

Fields of UrlInvalidAuthMechanism

url: Urlmechanism: String
UrlUnsupportedParameter

Unsupported URL parameter.

Fields of UrlUnsupportedParameter

url: Urlparameter: String
CreatePollHandle

Could not create mio Poll handle.

Fields of CreatePollHandle

source: Error
RegisterWithPollHandle

Could not register descriptor with Poll handle.

Fields of RegisterWithPollHandle

source: Error
DeregisterWithPollHandle

Could not register descriptor with Poll handle.

Fields of DeregisterWithPollHandle

source: Error
FailedToPoll

Failed to poll mio Poll handle.

Fields of FailedToPoll

source: Error
TlsHandshake

The TLS handshake failed.

Fields of TlsHandshake

source: Error
CreateTlsConnector

Error from underlying TLS implementation.

Fields of CreateTlsConnector

source: Error
UnsupportedAuthMechanism

The server does not support the requested auth mechanism.

Fields of UnsupportedAuthMechanism

available: Stringrequested: String
UnsupportedLocale

The server does not support the requested locale.

Fields of UnsupportedLocale

available: Stringrequested: String
FrameMaxTooSmall

The requested frame size is smaller than the minimum required by AMQP.

Fields of FrameMaxTooSmall

min: u32requested: u32
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

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

Fields of ServerClosedConnection

code: u16message: String
ClientClosedConnection

The client closed the connection.

ServerClosedChannel

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

Fields of ServerClosedChannel

channel_id: u16code: u16message: String
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.

Fields of ForkFailed

source: Error
ExhaustedChannelIds

No more channels can be opened because there are already channel_max channels open.

UnavailableChannelId

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).

Fields of UnavailableChannelId

channel_id: u16
ClientException

The client sent an AMQP exception to the server and closed the connection.

ReceivedFrameWithBogusChannelId

The server sent frames for a channel ID we don't know about.

Fields of ReceivedFrameWithBogusChannelId

channel_id: u16
IoThreadPanic

The I/O thread panicked.

DuplicateConsumerTag

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

Fields of DuplicateConsumerTag

channel_id: u16consumer_tag: String
UnknownConsumerTag

The server sent us a Delivery for a channel we don't know about.

Fields of UnknownConsumerTag

channel_id: u16consumer_tag: String

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error where
    Self: Debug + Display
[src]

impl ErrorCompat for Error[src]

Auto Trait Implementations

impl !RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl !UnwindSafe for Error

Blanket Implementations

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

impl<T> AsErrorSource for T where
    T: 'static + Error
[src]

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

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

impl<T> From<T> for T[src]

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

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.