pub enum TransportError {
Read(Error),
InvalidPacketHeader(i32),
ManyPackets {
num: u8,
expected: u8,
},
InvalidOrder,
Compression(Error),
}Expand description
Errors produced while validating or reassembling server packets. Errors produced while validating, assembling, or decompressing packets.
Variants§
Read(Error)
A packet ended before a required header field was available.
InvalidPacketHeader(i32)
The packet does not begin with a recognized connectionless header.
ManyPackets
More fragments arrived than the sequence header declared.
InvalidOrder
Fragment numbers were duplicated or were not in a valid sequence.
Compression(Error)
A compressed payload could not be decoded or failed its integrity checks.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Forget for Error
impl Freeze for Error
impl Move for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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