Enum ratsio::error::RatsioError
source · [−]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
Performs the conversion.
Performs the conversion.
Performs the conversion.