pub enum PacketValidationError {
MissingField(PacketMissingFieldError),
InvalidField(Error),
}
Expand description
Errors validating Packet
.
Variants§
Trait Implementations§
Source§impl Debug for PacketValidationError
impl Debug for PacketValidationError
Source§impl Display for PacketValidationError
impl Display for PacketValidationError
Source§impl Error for PacketValidationError
impl Error for PacketValidationError
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 From<Error> for PacketValidationError
impl From<Error> for PacketValidationError
Source§impl From<PacketMissingFieldError> for PacketValidationError
impl From<PacketMissingFieldError> for PacketValidationError
Source§fn from(src: PacketMissingFieldError) -> Self
fn from(src: PacketMissingFieldError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PacketValidationError
impl RefUnwindSafe for PacketValidationError
impl Send for PacketValidationError
impl Sync for PacketValidationError
impl Unpin for PacketValidationError
impl UnwindSafe for PacketValidationError
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