Enum quinn_proto::PacketDecodeError
source · 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
)