pub enum OutboundFrame {
Headers(Vec<Header>),
Body(QuicheBuf, bool),
Datagram(PooledDgram, u64),
PeerStreamError,
FlowShutdown {
flow_id: u64,
stream_id: u64,
},
}
Expand description
An OutboundFrame
is a data frame that should be sent from a local task
to a peer over a [quiche::h3::Connection
].
This is used, for example, to send response body data to a peer, or proxied UDP datagrams.
Variants§
Headers(Vec<Header>)
Response headers to be sent to the peer.
Body(QuicheBuf, bool)
Response body/CONNECT downstream data plus FIN flag.
Datagram(PooledDgram, u64)
CONNECT-UDP (DATAGRAM) downstream data plus flow ID.
PeerStreamError
An error encountered when serving the request. Stream should be closed.
FlowShutdown
DATAGRAM flow explicitly closed.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OutboundFrame
impl RefUnwindSafe for OutboundFrame
impl Send for OutboundFrame
impl Sync for OutboundFrame
impl Unpin for OutboundFrame
impl UnwindSafe for OutboundFrame
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> 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