ConnectorErrorExt

Trait ConnectorErrorExt 

Source
pub trait ConnectorErrorExt {
    // Required methods
    fn encode(error: EncodeError) -> Self;
    fn decode(error: DecodeError) -> Self;
    fn general(context: &'static str) -> Self;
    fn reason(context: &'static str, reason: impl Into<String>) -> Self;
    fn custom<E>(context: &'static str, e: E) -> Self
       where E: Error + Sync + Send + 'static;
}

Required Methods§

Source

fn encode(error: EncodeError) -> Self

Source

fn decode(error: DecodeError) -> Self

Source

fn general(context: &'static str) -> Self

Source

fn reason(context: &'static str, reason: impl Into<String>) -> Self

Source

fn custom<E>(context: &'static str, e: E) -> Self
where E: Error + Sync + Send + 'static,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§