pub struct Error { /* private fields */ }
Expand description
Error type.
Implementations
sourceimpl Error
impl Error
sourcepub fn incomplete(self) -> Option<usize>
pub fn incomplete(self) -> Option<usize>
If the error’s kind
is an ErrorKind::Incomplete
, return the expected_len
.
Trait Implementations
sourceimpl From<Infallible> for Error
impl From<Infallible> for Error
sourcefn from(_: Infallible) -> Error
fn from(_: Infallible) -> Error
Converts to this type from the input type.
impl Copy for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more