Enum salvo_http3::proto::frame::Frame
source · pub enum Frame<B> {
Data(B),
Headers(Bytes),
CancelPush(PushId),
Settings(Settings),
PushPromise(PushPromise),
Goaway(VarInt),
MaxPushId(PushId),
WebTransportStream(SessionId),
Grease,
}
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>(buf: &mut T) -> Result<Self, FrameError>
pub fn decode<T: Buf>(buf: &mut T) -> Result<Self, FrameError>
Decodes a Frame from the stream according to https://www.rfc-editor.org/rfc/rfc9114#section-7.1
Trait Implementations§
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