Trait DecodeError

Source
pub(super) trait DecodeError {
    type Ok;

    // Required method
    fn decode_error(self, msg: impl Display) -> Result<Self::Ok>;
}

Required Associated Types§

Required Methods§

Source

fn decode_error(self, msg: impl Display) -> Result<Self::Ok>

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.

Implementations on Foreign Types§

Source§

impl<T, E> DecodeError for Result<T, E>
where E: Error + Send + Sync + 'static,

Source§

type Ok = T

Source§

fn decode_error(self, msg: impl Display) -> Result<<Self as DecodeError>::Ok>

Implementors§