pub enum Error {
Internal(String),
Io(IoError),
Protobuf(ProtobufError),
Serialization(SerializationError),
Ssl(SslError),
Namespace(String),
}
Expand description
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.
Namespace(String)
Problems with given namespace
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Error> for Error
impl From<Error> for Error
source§fn from(err: ProtobufError) -> Error
fn from(err: ProtobufError) -> Error
Converts to this type from the input type.
source§impl From<Error> for Error
impl From<Error> for Error
source§fn from(err: SerializationError) -> Error
fn from(err: SerializationError) -> Error
Converts to this type from the input type.
source§impl From<ErrorStack> for Error
impl From<ErrorStack> for Error
source§fn from(err: ErrorStack) -> Error
fn from(err: ErrorStack) -> Error
Converts to this type from the input type.