pub enum Report90Error {
InvalidLength {
actual: usize,
},
ArgumentsTooLong {
actual: usize,
},
InvalidDataSize {
data_size: usize,
},
ChecksumMismatch {
expected: u8,
actual: u8,
},
}Expand description
Errors produced while encoding or decoding a classic report.
经典报文编解码可能产生的错误。
Variants§
Trait Implementations§
Source§impl Clone for Report90Error
impl Clone for Report90Error
Source§fn clone(&self) -> Report90Error
fn clone(&self) -> Report90Error
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 moreSource§impl Debug for Report90Error
impl Debug for Report90Error
Source§impl Display for Report90Error
impl Display for Report90Error
impl Eq for Report90Error
Source§impl Error for Report90Error
impl Error for Report90Error
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 Report90Error
impl PartialEq for Report90Error
Source§fn eq(&self, other: &Report90Error) -> bool
fn eq(&self, other: &Report90Error) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Report90Error
Auto Trait Implementations§
impl Freeze for Report90Error
impl RefUnwindSafe for Report90Error
impl Send for Report90Error
impl Sync for Report90Error
impl Unpin for Report90Error
impl UnsafeUnpin for Report90Error
impl UnwindSafe for Report90Error
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