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