pub struct UnderReadError {
pub obj: &'static str,
pub expected: usize,
pub found: usize,
}
Expand description
A failure to read sufficient bytes to construct an object.
Fields§
§obj: &'static str
The struct that under read.
expected: usize
The number of bytes expected.
found: usize
The number of bytes read.
Trait Implementations§
Source§impl Clone for UnderReadError
impl Clone for UnderReadError
Source§fn clone(&self) -> UnderReadError
fn clone(&self) -> UnderReadError
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UnderReadError
impl Debug for UnderReadError
Source§impl Display for UnderReadError
impl Display for UnderReadError
Source§impl Error for UnderReadError
impl Error for UnderReadError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<UnderReadError> for Error
impl From<UnderReadError> for Error
Source§fn from(source: UnderReadError) -> Self
fn from(source: UnderReadError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UnderReadError
impl PartialEq for UnderReadError
impl Eq for UnderReadError
impl StructuralPartialEq for UnderReadError
Auto Trait Implementations§
impl Freeze for UnderReadError
impl RefUnwindSafe for UnderReadError
impl Send for UnderReadError
impl Sync for UnderReadError
impl Unpin for UnderReadError
impl UnwindSafe for UnderReadError
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