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§
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
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.