pub enum PacketRejectionError {
TimedOut,
InvalidEncryption,
Config(PacketConfigError),
}Expand description
Kind of error that caused a packet to be rejected from this socket and not received.
Variants§
TimedOut
The packet is part of a sequence but no other packets of the sequence have been found and therefore no bundle can be reconstructed.
InvalidEncryption
The packet should be decrypted but it failed.
Config(PacketConfigError)
The packet could not be synchronized from its data.
Trait Implementations§
Source§impl Clone for PacketRejectionError
impl Clone for PacketRejectionError
Source§fn clone(&self) -> PacketRejectionError
fn clone(&self) -> PacketRejectionError
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 PacketRejectionError
impl Debug for PacketRejectionError
Source§impl Display for PacketRejectionError
impl Display for PacketRejectionError
Source§impl Error for PacketRejectionError
impl Error for PacketRejectionError
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<PacketConfigError> for PacketRejectionError
impl From<PacketConfigError> for PacketRejectionError
Source§fn from(source: PacketConfigError) -> Self
fn from(source: PacketConfigError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PacketRejectionError
impl RefUnwindSafe for PacketRejectionError
impl Send for PacketRejectionError
impl Sync for PacketRejectionError
impl Unpin for PacketRejectionError
impl UnwindSafe for PacketRejectionError
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