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

Internal(String)

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

Io(IoError)

This variant includes everything related to the network connection.

Protobuf(ProtobufError)

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

Serialization(SerializationError)

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

Ssl(SslError)

This variant includes any error that comes from OpenSSL.

Trait Implementations

impl Debug for Error
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for Error
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl StdError for Error
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&StdError>

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

impl From<IoError> for Error
[src]

fn from(err: IoError) -> Error

Performs the conversion.

impl From<ProtobufError> for Error
[src]

fn from(err: ProtobufError) -> Error

Performs the conversion.

impl From<SerializationError> for Error
[src]

fn from(err: SerializationError) -> Error

Performs the conversion.

impl From<SslError> for Error
[src]

fn from(err: SslError) -> Error

Performs the conversion.