pub enum Frame<B> {
Data(B),
Headers(Bytes),
CancelPush(PushId),
Settings(Settings),
PushPromise(PushPromise),
Goaway(VarInt),
MaxPushId(PushId),
WebTransportStream(SessionId),
Grease,
}Available on crate feature
h3 only.Variants§
Data(B)
Headers(Bytes)
CancelPush(PushId)
Settings(Settings)
PushPromise(PushPromise)
Goaway(VarInt)
MaxPushId(PushId)
WebTransportStream(SessionId)
Describes the header for a webtransport stream.
The payload is sent streaming until the stream is closed
Unwrap the framed streamer and read the inner stream until the end.
Conversely, when sending, send this frame and unwrap the stream
Grease
Implementations§
Source§impl Frame<PayloadLen>
impl Frame<PayloadLen>
pub const MAX_ENCODED_SIZE: usize = 56usize
Sourcepub fn decode<T>(buf: &mut T) -> Result<Frame<PayloadLen>, FrameError>where
T: Buf,
pub fn decode<T>(buf: &mut T) -> Result<Frame<PayloadLen>, FrameError>where
T: Buf,
Decodes a Frame from the stream according to https://www.rfc-editor.org/rfc/rfc9114#section-7.1
Trait Implementations§
Source§impl Debug for Frame<PayloadLen>
impl Debug for Frame<PayloadLen>
Auto Trait Implementations§
impl<B> !Freeze for Frame<B>
impl<B> RefUnwindSafe for Frame<B>where
B: RefUnwindSafe,
impl<B> Send for Frame<B>where
B: Send,
impl<B> Sync for Frame<B>where
B: Sync,
impl<B> Unpin for Frame<B>where
B: Unpin,
impl<B> UnwindSafe for Frame<B>where
B: 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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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