pub enum ReadUintError {
Incomplete(Incomplete),
InvalidWidth(InvalidWidth),
}Expand description
Error from the variable-width read helpers (read_be_uint,
read_be_uint_into).
Variants§
Incomplete(Incomplete)
Not enough input bytes.
InvalidWidth(InvalidWidth)
Requested width out of range for the operation.
Trait Implementations§
Source§impl Clone for ReadUintError
impl Clone for ReadUintError
Source§fn clone(&self) -> ReadUintError
fn clone(&self) -> ReadUintError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReadUintError
Source§impl Debug for ReadUintError
impl Debug for ReadUintError
Source§impl Display for ReadUintError
impl Display for ReadUintError
impl Eq for ReadUintError
Source§impl Error for ReadUintError
impl Error for ReadUintError
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<Incomplete> for ReadUintError
impl From<Incomplete> for ReadUintError
Source§fn from(e: Incomplete) -> Self
fn from(e: Incomplete) -> Self
Converts to this type from the input type.
Source§impl From<InvalidWidth> for ReadUintError
impl From<InvalidWidth> for ReadUintError
Source§fn from(e: InvalidWidth) -> Self
fn from(e: InvalidWidth) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ReadUintError
impl PartialEq for ReadUintError
impl StructuralPartialEq for ReadUintError
Auto Trait Implementations§
impl Freeze for ReadUintError
impl RefUnwindSafe for ReadUintError
impl Send for ReadUintError
impl Sync for ReadUintError
impl Unpin for ReadUintError
impl UnsafeUnpin for ReadUintError
impl UnwindSafe for ReadUintError
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