pub enum RatsioError {
Show 16 variants CommandBuildError(String), ServerDisconnected(Option<Error>), UTF8Error(FromUtf8Error), NoRouteToHostError, RequestStreamClosed, ProstDecodeError(DecodeError), AddrParseError(AddrParseError), CannotReconnectToServer, InnerBrokenChain, InternalServerError, MaxPayloadOverflow(usize), GenericError(String), SubscriptionReachedMaxMsgs(u32), StreamClosed(String), AckInboxMissing, SpawnError(SpawnError),
}

Variants

CommandBuildError(String)

ServerDisconnected(Option<Error>)

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

UTF8Error(FromUtf8Error)

Protocol error Occurs if we try to parse a string that is supposed to be valid UTF8 and…is actually not

NoRouteToHostError

Error on TLS handling

RequestStreamClosed

Cannot parse an URL

ProstDecodeError(DecodeError)

Cannot decode protobuf message

AddrParseError(AddrParseError)

Cannot parse an IP

CannotReconnectToServer

Cannot reconnect to server after retrying once

InnerBrokenChain

Something went wrong in one of the Reciever/Sender pairs

InternalServerError

Something unexpected went wrong

MaxPayloadOverflow(usize)

The user supplied a too big payload for the server

GenericError(String)

Generic string error

SubscriptionReachedMaxMsgs(u32)

Error thrown when a subscription is fused after reaching the maximum messages

StreamClosed(String)

AckInboxMissing

SpawnError(SpawnError)

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.