pub enum PacketDecodeError {
UnsupportedVersion {
src_cid: ConnectionId,
dst_cid: ConnectionId,
version: u32,
},
InvalidHeader(&'static str),
}
Expand description
Packet decode error
Variants§
UnsupportedVersion
Packet uses a QUIC version that is not supported
InvalidHeader(&'static str)
The packet header is invalid
Trait Implementations§
Source§impl Clone for PacketDecodeError
impl Clone for PacketDecodeError
Source§fn clone(&self) -> PacketDecodeError
fn clone(&self) -> PacketDecodeError
Returns a copy 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 PacketDecodeError
impl Debug for PacketDecodeError
Source§impl Display for PacketDecodeError
impl Display for PacketDecodeError
Source§impl Error for PacketDecodeError
impl Error for PacketDecodeError
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 Hash for PacketDecodeError
impl Hash for PacketDecodeError
Source§impl Ord for PacketDecodeError
impl Ord for PacketDecodeError
Source§fn cmp(&self, other: &PacketDecodeError) -> Ordering
fn cmp(&self, other: &PacketDecodeError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PacketDecodeError
impl PartialEq for PacketDecodeError
Source§impl PartialOrd for PacketDecodeError
impl PartialOrd for PacketDecodeError
impl Eq for PacketDecodeError
impl StructuralPartialEq for PacketDecodeError
Auto Trait Implementations§
impl Freeze for PacketDecodeError
impl RefUnwindSafe for PacketDecodeError
impl Send for PacketDecodeError
impl Sync for PacketDecodeError
impl Unpin for PacketDecodeError
impl UnwindSafe for PacketDecodeError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)