pub trait QuicTransportSend: AsyncWrite {
// Required method
fn reset(&mut self, code: u64);
// Provided methods
fn stopped(&self) -> Option<PeerGone> { ... }
fn set_priority(&mut self, _priority: i32) { ... }
}Expand description
Abstraction over the outbound half of a QUIC stream (both bidi and outbound uni)
Required Methods§
Provided Methods§
Sourcefn stopped(&self) -> Option<PeerGone>
fn stopped(&self) -> Option<PeerGone>
A future that resolves when the peer abandons this send stream — STOP_SENDING,
stream reset, or connection loss.
QUIC signals departure out-of-band rather than through the byte stream, so nothing in
the AsyncRead / AsyncWrite seam can observe it: writes to an abandoned stream are
buffered rather than refused, and the recv half is at end-of-file for the whole life of
a healthy request. This is the only way the layers above can tell.
The default returns None, for transports that cannot report abandonment.
Sourcefn set_priority(&mut self, _priority: i32)
fn set_priority(&mut self, _priority: i32)
Set this stream’s transmission priority relative to other streams on the same connection. Higher values are sent first when the connection is send-constrained.
The default does nothing, for transports without per-stream prioritization.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".