pub enum ReticulumCodecError {
BufferTooShort {
expected: usize,
got: usize,
},
UnsupportedPacketType(u8),
PayloadTruncated,
InvalidPublicKey,
InvalidSignature,
JsonError(Error),
}Variants§
BufferTooShort
UnsupportedPacketType(u8)
PayloadTruncated
InvalidPublicKey
InvalidSignature
JsonError(Error)
Trait Implementations§
Source§impl Debug for ReticulumCodecError
impl Debug for ReticulumCodecError
Source§impl Display for ReticulumCodecError
impl Display for ReticulumCodecError
Source§impl Error for ReticulumCodecError
impl Error for ReticulumCodecError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for ReticulumCodecError
impl !UnwindSafe for ReticulumCodecError
impl Forget for ReticulumCodecError
impl Freeze for ReticulumCodecError
impl Send for ReticulumCodecError
impl Sync for ReticulumCodecError
impl Unpin for ReticulumCodecError
impl UnsafeUnpin for ReticulumCodecError
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