pub enum PacketErrorKind {
ExceededMaxPacketSize,
PacketCannotBeFragmented,
MtuTooSmall,
PayloadTooLargeToFragment,
}Expand description
Errors that could occur while parsing packet contents
Variants§
ExceededMaxPacketSize
The maximal allowed size of the packet was exceeded
PacketCannotBeFragmented
Only PacketType::Packet can be fragmented
MtuTooSmall
MTU is too small to accommodate packet headers and minimum payload
PayloadTooLargeToFragment
Packet payload too large to fragment with current MTU settings
Trait Implementations§
Source§impl Clone for PacketErrorKind
impl Clone for PacketErrorKind
Source§fn clone(&self) -> PacketErrorKind
fn clone(&self) -> PacketErrorKind
Returns a duplicate of the value. Read more
1.0.0 · 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 PacketErrorKind
impl Debug for PacketErrorKind
Source§impl Display for PacketErrorKind
impl Display for PacketErrorKind
Source§impl From<PacketErrorKind> for ErrorKind
impl From<PacketErrorKind> for ErrorKind
Source§fn from(inner: PacketErrorKind) -> Self
fn from(inner: PacketErrorKind) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PacketErrorKind
impl PartialEq for PacketErrorKind
impl Eq for PacketErrorKind
impl StructuralPartialEq for PacketErrorKind
Auto Trait Implementations§
impl Freeze for PacketErrorKind
impl RefUnwindSafe for PacketErrorKind
impl Send for PacketErrorKind
impl Sync for PacketErrorKind
impl Unpin for PacketErrorKind
impl UnwindSafe for PacketErrorKind
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