FromReadError

Trait FromReadError 

Source
pub trait FromReadError {
    // Required method
    fn from_read_error<E: Debug + Display>(err: E) -> Self;
}
Expand description

Construct a decode Error from a Read implementation error.

Required Methods§

Source

fn from_read_error<E: Debug + Display>(err: E) -> Self

Forward an error produced by the Reader.

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§