pub struct UnknownTransportParameter<T> {
pub id: u64,
pub value: T,
}
Expand description
QUIC Unknown Transport Parameter.
A QUIC transport parameter that is not specifically recognized by this implementation.
Fields§
§id: u64
The ID of the unknown transport parameter.
value: T
Original data representing the value of the unknown transport parameter.
Implementations§
Source§impl<T> UnknownTransportParameter<T>
impl<T> UnknownTransportParameter<T>
Sourcepub fn is_reserved(&self) -> bool
pub fn is_reserved(&self) -> bool
Checks whether an unknown Transport Parameter’s ID is in the reserved space.
See Section 18.1 in RFC9000.
Trait Implementations§
Source§impl<T: Clone> Clone for UnknownTransportParameter<T>
impl<T: Clone> Clone for UnknownTransportParameter<T>
Source§fn clone(&self) -> UnknownTransportParameter<T>
fn clone(&self) -> UnknownTransportParameter<T>
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<T: Debug> Debug for UnknownTransportParameter<T>
impl<T: Debug> Debug for UnknownTransportParameter<T>
Source§impl From<UnknownTransportParameter<&[u8]>> for UnknownTransportParameter<Vec<u8>>
impl From<UnknownTransportParameter<&[u8]>> for UnknownTransportParameter<Vec<u8>>
Source§fn from(value: UnknownTransportParameter<&[u8]>) -> Self
fn from(value: UnknownTransportParameter<&[u8]>) -> Self
Converts to this type from the input type.
Source§impl<T: PartialEq> PartialEq for UnknownTransportParameter<T>
impl<T: PartialEq> PartialEq for UnknownTransportParameter<T>
Source§fn eq(&self, other: &UnknownTransportParameter<T>) -> bool
fn eq(&self, other: &UnknownTransportParameter<T>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<T> StructuralPartialEq for UnknownTransportParameter<T>
Auto Trait Implementations§
impl<T> Freeze for UnknownTransportParameter<T>where
T: Freeze,
impl<T> RefUnwindSafe for UnknownTransportParameter<T>where
T: RefUnwindSafe,
impl<T> Send for UnknownTransportParameter<T>where
T: Send,
impl<T> Sync for UnknownTransportParameter<T>where
T: Sync,
impl<T> Unpin for UnknownTransportParameter<T>where
T: Unpin,
impl<T> UnwindSafe for UnknownTransportParameter<T>where
T: UnwindSafe,
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more