Type Alias Error

Source
pub type Error<E> = Error<E>;

Aliased Type§

pub enum Error<E> {
    Incomplete(usize),
    Invalid,
    BufferOverflow,
    InvalidLen,
    Io(E),
}

Variants§

§

Incomplete(usize)

§

Invalid

§

BufferOverflow

§

InvalidLen

§

Io(E)

Implementations§

Source§

impl<E> Error<E>
where E: Error,

Source

pub fn erase(&self) -> Error<ErrorKind>

Trait Implementations§

Source§

impl<E> From<ReadExactError<E>> for Error<E>

Source§

fn from(e: ReadExactError<E>) -> Self

Converts to this type from the input type.