pub enum EmapiError {
Show 18 variants
Range {
name: &'static str,
min: u64,
max: u64,
value: u64,
},
NotEnoughData {
offset: usize,
length: usize,
data_len: usize,
},
FrameTooShort,
MissingFrameHead,
MissingFrameTail,
FrameLengthMismatch {
expected: usize,
actual: usize,
},
CommandDataTooShort,
BadFrameCrc {
expected: u32,
actual: u32,
},
PayloadLengthMismatch {
expected: usize,
actual: usize,
},
InvalidFrameDataLength,
TruncatedTlvHeader,
TruncatedTlvValue,
InvalidTlvType {
tag: u8,
expected: &'static str,
actual_len: usize,
},
InvalidUtf8,
InvalidCapacity {
name: &'static str,
},
Timeout {
message: String,
},
Connection {
message: String,
},
Protocol {
message: String,
},
}Variants§
Range
NotEnoughData
FrameTooShort
MissingFrameHead
MissingFrameTail
FrameLengthMismatch
CommandDataTooShort
BadFrameCrc
PayloadLengthMismatch
InvalidFrameDataLength
TruncatedTlvHeader
TruncatedTlvValue
InvalidTlvType
InvalidUtf8
InvalidCapacity
Timeout
Connection
Protocol
Trait Implementations§
Source§impl Clone for EmapiError
impl Clone for EmapiError
Source§fn clone(&self) -> EmapiError
fn clone(&self) -> EmapiError
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 EmapiError
impl Debug for EmapiError
Source§impl Display for EmapiError
impl Display for EmapiError
impl Eq for EmapiError
Source§impl Error for EmapiError
impl Error for EmapiError
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 EmapiError
impl PartialEq for EmapiError
Source§fn eq(&self, other: &EmapiError) -> bool
fn eq(&self, other: &EmapiError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EmapiError
Auto Trait Implementations§
impl Freeze for EmapiError
impl RefUnwindSafe for EmapiError
impl Send for EmapiError
impl Sync for EmapiError
impl Unpin for EmapiError
impl UnsafeUnpin for EmapiError
impl UnwindSafe for EmapiError
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