pub enum PacketError {
InvalidHeader(PacketHeaderError),
InvalidExtension(ExtensionError),
InvalidLen,
EmptyDataPayload,
}
Variants§
Trait Implementations§
Source§impl Clone for PacketError
impl Clone for PacketError
Source§fn clone(&self) -> PacketError
fn clone(&self) -> PacketError
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 PacketError
impl Debug for PacketError
Source§impl From<ExtensionError> for PacketError
impl From<ExtensionError> for PacketError
Source§fn from(value: ExtensionError) -> Self
fn from(value: ExtensionError) -> Self
Converts to this type from the input type.
Source§impl From<PacketHeaderError> for PacketError
impl From<PacketHeaderError> for PacketError
Source§fn from(value: PacketHeaderError) -> Self
fn from(value: PacketHeaderError) -> Self
Converts to this type from the input type.
Source§impl From<SelectiveAckError> for PacketError
impl From<SelectiveAckError> for PacketError
Source§fn from(value: SelectiveAckError) -> Self
fn from(value: SelectiveAckError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PacketError
impl RefUnwindSafe for PacketError
impl Send for PacketError
impl Sync for PacketError
impl Unpin for PacketError
impl UnwindSafe for PacketError
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