pub enum RatsioError {
CommandBuildError(String),
IOError(Error),
ServerDisconnected(Option<Error>),
UTF8Error(FromUtf8Error),
TlsError(Error),
NoRouteToHostError,
UrlParseError(ParseError),
AddrParseError(AddrParseError),
UriDNSResolveError(Option<Error>),
CannotReconnectToServer,
InnerBrokenChain,
MaxPayloadOverflow(usize),
GenericError(String),
SubscriptionReachedMaxMsgs(u32),
StreamClosed(String),
}
Error enum for all cases of internal/external errors occuring during client execution
CommandBuildError(String)
Building a command has failed because of invalid syntax or incorrect arguments
Generic IO error from stdlib
Occurs when the client is not yet connected or got disconnected from the server.
Contains Some<io::Error>
when it's actually a disconnection or contains None
when we are not connected at all
Protocol error
Occurs if we try to parse a string that is supposed to be valid UTF8 and...is actually not
Occurs when we cannot resolve the URI given using the local host's DNS resolving mechanisms
Will contain Some(io::Error)
when the resolving has been tried with an error, and None
when
resolving succeeded but gave no results
Cannot reconnect to server after retrying once
Something went wrong in one of the Reciever/Sender pairs
The user supplied a too big payload for the server
Error thrown when a subscription is fused after reaching the maximum messages
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
Returns a reference to the Backtrace
carried by this failure, if it carries one. Read more
fn context<D>(self, context: D) -> Context<D> where D: Display + Send + Sync + 'static, | [src] |
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more
Converts the given value to a String
. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Converts a reference to Self
into a dynamic trait object of Fail
.
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
Returns a reference to the Backtrace
carried by this failure, if it carries one. Read more
fn context<D>(self, context: D) -> Context<D> where D: Display + Send + Sync + 'static, | [src] |
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more