Enum rust_cast::errors::Error [] [src]

pub enum Error {
    Internal(String),
    Io(IoError),
    Protobuf(ProtobufError),
    Serialization(SerializationError),
    Ssl(SslError),
}

Consolidates possible error types that can occur in the lib.

Variants

This variant is used when error occurs in the lib logic.

This variant includes everything related to the network connection.

This variant includes all possible errors that come from Protobuf layer.

This variant includes everything related to (de)serialization of incoming and outgoing messages.

This variant includes any error that comes from OpenSSL.

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl StdError for Error
[src]

[src]

A short description of the error. Read more

[src]

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

impl From<IoError> for Error
[src]

[src]

Performs the conversion.

impl From<ProtobufError> for Error
[src]

[src]

Performs the conversion.

impl From<SerializationError> for Error
[src]

[src]

Performs the conversion.

impl From<ErrorStack> for Error
[src]

[src]

Performs the conversion.

impl From<HandshakeError<TcpStream>> for Error
[src]

[src]

Performs the conversion.