Struct packable::error::UnexpectedEOF
source · pub struct UnexpectedEOF {
pub required: usize,
pub had: usize,
}
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: usize
The required number of bytes.
had: usize
The number of bytes the unpacker had or the number of bytes the packer can receive.
Trait Implementations§
source§impl 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§
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