pub enum EnigmaPacketError {
InvalidPacket(String),
UnsupportedVersion(u8),
SizeLimitExceeded,
DecodeError(String),
ValidationError(String),
}Variants§
InvalidPacket(String)
UnsupportedVersion(u8)
SizeLimitExceeded
DecodeError(String)
ValidationError(String)
Trait Implementations§
Source§impl Debug for EnigmaPacketError
impl Debug for EnigmaPacketError
Source§impl Display for EnigmaPacketError
impl Display for EnigmaPacketError
Source§impl Error for EnigmaPacketError
impl Error for EnigmaPacketError
1.30.0§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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for EnigmaPacketError
impl RefUnwindSafe for EnigmaPacketError
impl Send for EnigmaPacketError
impl Sync for EnigmaPacketError
impl Unpin for EnigmaPacketError
impl UnwindSafe for EnigmaPacketError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more