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: usizeThe required number of bytes.
had: usizeThe 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 Freeze for UnexpectedEOF
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