pub enum BeBytesError {
EmptyBuffer,
InsufficientData {
expected: usize,
actual: usize,
},
InvalidDiscriminant {
value: u8,
type_name: &'static str,
},
InvalidDiscriminantLarge {
value: u128,
type_name: &'static str,
},
InvalidBitField {
value: u128,
max: u128,
field: &'static str,
},
InvalidUtf8 {
field: &'static str,
},
MarkerNotFound {
marker: u8,
field: &'static str,
},
InvalidChar {
value: u32,
},
}Expand description
Error type for BeBytes operations
Variants§
EmptyBuffer
InsufficientData
InvalidDiscriminant
InvalidDiscriminantLarge
InvalidBitField
InvalidUtf8
MarkerNotFound
InvalidChar
Trait Implementations§
Source§impl Clone for BeBytesError
impl Clone for BeBytesError
Source§fn clone(&self) -> BeBytesError
fn clone(&self) -> BeBytesError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BeBytesError
impl Debug for BeBytesError
Source§impl Display for BeBytesError
impl Display for BeBytesError
Source§impl Error for BeBytesError
Available on crate feature std only.
impl Error for BeBytesError
Available on crate feature
std only.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 PartialEq for BeBytesError
impl PartialEq for BeBytesError
impl Eq for BeBytesError
impl StructuralPartialEq for BeBytesError
Auto Trait Implementations§
impl Freeze for BeBytesError
impl RefUnwindSafe for BeBytesError
impl Send for BeBytesError
impl Sync for BeBytesError
impl Unpin for BeBytesError
impl UnwindSafe for BeBytesError
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