pub enum H3iFrame {
QuicheH3(Frame),
Headers(EnrichedHeaders),
ResetStream(ResetStream),
}
Expand description
An internal representation of a QUIC or HTTP/3 frame. This type exists so that we can extend types defined in Quiche.
Variants§
QuicheH3(Frame)
A wrapper around a quiche HTTP/3 frame.
Headers(EnrichedHeaders)
A wrapper around an EnrichedHeaders struct.
ResetStream(ResetStream)
A wrapper around a ResetStream struct
Implementations§
Source§impl H3iFrame
impl H3iFrame
Sourcepub fn to_enriched_headers(&self) -> Option<EnrichedHeaders>
pub fn to_enriched_headers(&self) -> Option<EnrichedHeaders>
Try to convert this H3iFrame
to an EnrichedHeaders.
Returns Some
if the operation succeeded.
Trait Implementations§
impl Eq for H3iFrame
impl StructuralPartialEq for H3iFrame
Auto Trait Implementations§
impl Freeze for H3iFrame
impl RefUnwindSafe for H3iFrame
impl Send for H3iFrame
impl Sync for H3iFrame
impl Unpin for H3iFrame
impl UnwindSafe for H3iFrame
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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