pub struct Error { /* private fields */ }
Expand description
Error type.
Implementations§
source§impl Error
impl Error
sourcepub fn incomplete(actual_len: Length) -> Self
pub fn incomplete(actual_len: Length) -> Self
Create a new ErrorKind::Incomplete
for the given length.
Computes the expected len as being one greater than actual_len
.
Trait Implementations§
source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
source§fn from(err: FromUtf8Error) -> Error
fn from(err: FromUtf8Error) -> Error
Converts to this type from the input type.
source§impl From<Infallible> for Error
impl From<Infallible> for Error
source§fn from(_: Infallible) -> Error
fn from(_: Infallible) -> Error
Converts to this type from the input type.
source§impl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
source§fn from(_: TryFromIntError) -> Error
fn from(_: TryFromIntError) -> Error
Converts to this type from the input type.