[−][src]Enum amiquip::Error
Specific error cases returned by amiquip.
Variants
URL parsing failed.
Fields of UrlParseError
source: ParseError
A TLS connection was requested (e.g., via URL), but the amiquip was built without TLS support.
An insecure URL was supplied to Connection::open
,
which only allows amqps://...
URLs.
Fields of InsecureUrl
url: Url
The underlying socket was closed.
An I/O error occurred while reading from the socket.
Fields of IoErrorReadingSocket
source: Error
An I/O error occurred while writing from the socket.
Fields of IoErrorWritingSocket
source: Error
We received data that could not be parsed as an AMQP frame.
Failed to resolve a URL into an IP address (or addresses).
Fields of UrlNoSocketAddrs
url: Url
Error resolving a URL into an IP address (or addresses).
Failed to open TCP connection.
Failed to set the port on a URL.
Fields of SpecifyUrlPort
url: Url
Invalid scheme for URL.
Fields of InvalidUrlScheme
url: Url
URL is missing domain.
Fields of UrlMissingDomain
url: Url
URL contains extra path segments.
Fields of ExtraUrlPathSegments
url: Url
Could not parse heartbeat parameter of URL.
Fields of UrlParseHeartbeat
url: Url
source: ParseIntError
Could not parse channel_max parameter of URL.
Fields of UrlParseChannelMax
url: Url
source: ParseIntError
Could not parse connection_timeout parameter of URL.
Fields of UrlParseConnectionTimeout
url: Url
source: ParseIntError
Invalid auth mechanism requested in URL.
Unsupported URL parameter.
Could not create mio Poll handle.
Fields of CreatePollHandle
source: Error
Could not register descriptor with Poll handle.
Fields of RegisterWithPollHandle
source: Error
Could not register descriptor with Poll handle.
Fields of DeregisterWithPollHandle
source: Error
Failed to poll mio Poll handle.
Fields of FailedToPoll
source: Error
The TLS handshake failed.
Fields of TlsHandshake
source: Error
Error from underlying TLS implementation.
Fields of CreateTlsConnector
source: Error
The server does not support the requested auth mechanism.
The server does not support the requested locale.
The requested frame size is smaller than the minimum required by AMQP.
Timeout occurred while performing the initial TCP connection.
The server requested a Secure/Secure-Ok exchange, which are currently unsupported.
The supplied authentication credentials were not accepted by the server.
The server missed too many successive heartbeats.
The server closed the connection with the given reply code and text.
The client closed the connection.
The server closed the given channel with the given reply code and text.
The client closed the channel.
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.
The I/O loop has dropped the sending side of a channel, typically because it has exited due to another error.
We received a valid AMQP frame but not one we expected; e.g., receiving an incorrect response to an AMQP method call.
Forking the I/O thread failed.
Fields of ForkFailed
source: Error
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).
The client sent an AMQP exception to the server and closed the connection.
The server sent frames for a channel ID we don't know about.
Fields of ReceivedFrameWithBogusChannelId
channel_id: u16
The I/O thread panicked.
The server sent us a consumer tag that is equal to another consumer tag we already have on the same channel.
The server sent us a Delivery
for a channel we don't know about.
Trait Implementations
impl Debug for Error
[src]
impl Display for Error
[src]
impl Error for Error where
Self: Debug + Display,
[src]
Self: Debug + Display,
fn description(&self) -> &str
[src]
fn cause(&self) -> Option<&dyn Error>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[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]
T: 'static + ?Sized,
impl<T> AsErrorSource for T where
T: 'static + Error,
[src]
T: 'static + Error,
pub fn as_error_source(&self) -> &(dyn Error + 'static)
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,