pub enum Error {
InvalidData,
IncorrectLength,
WriterOutOfSpace,
ReaderOutOfData,
StdIo(StdIoShim),
}Expand description
Error type returned by encoding/decoding and I/O adapters.
Variants§
InvalidData
Input data was malformed or inconsistent.
IncorrectLength
A size or length field was invalid for the operation.
WriterOutOfSpace
The writer had insufficient capacity to accept all bytes.
ReaderOutOfData
The reader ran out of data before the operation completed.
StdIo(StdIoShim)
Placeholder for std::io::Error when std is unavailable.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more