Struct packable::error::UnexpectedEOF
source · [−]Expand description
Error type to be raised when &[u8] does not have enough bytes to unpack something or when
SlicePacker does not have enough space to pack something.
Fields
required: usizeThe required number of bytes.
had: usizeThe number of bytes the unpacker had or the number of bytes the packer can receive.
Trait Implementations
sourceimpl Debug for UnexpectedEOF
impl Debug for UnexpectedEOF
Auto Trait Implementations
impl RefUnwindSafe for UnexpectedEOF
impl Send for UnexpectedEOF
impl Sync for UnexpectedEOF
impl Unpin for UnexpectedEOF
impl UnwindSafe for UnexpectedEOF
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