pub enum Frame {
Data(Data),
Headers(Headers),
Priority(Priority),
RstStream(RstStream),
Settings(Settings),
PushPromise(PushPromise),
Ping(Ping),
GoAway(GoAway),
WindowUpdate(WindowUpdate),
Continuation(Continuation),
PriorityUpdate(PriorityUpdate),
Unknown(u8),
}Variants§
Data(Data)
Headers(Headers)
Priority(Priority)
RstStream(RstStream)
Settings(Settings)
PushPromise(PushPromise)
Ping(Ping)
GoAway(GoAway)
WindowUpdate(WindowUpdate)
Continuation(Continuation)
PriorityUpdate(PriorityUpdate)
RFC 9218 §7.1 PRIORITY_UPDATE — connection-scoped signal that re-prioritizes a specific stream. Payload carries the prioritized stream ID and the verbatim priority field value (structured field).
Unknown(u8)
Unknown frame type (RFC 9113 §5.5) — payload already consumed, the state machine MUST ignore it.
Implementations§
Source§impl Frame
impl Frame
Sourcepub fn frame_type(&self) -> FrameType
pub fn frame_type(&self) -> FrameType
The RFC 9113 §6 frame type of a parsed frame.
FrameHeader carries a frame_type field, so a frame that has not
been parsed yet can name its type; a parsed Frame could not, and
callers that needed one re-derived it by matching all twelve variants
themselves. This is that match, written once.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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