pub trait ResetStream<E> {
// Required method
fn poll_reset(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
code: VarInt,
) -> Poll<Result<(), E>>;
}Expand description
Send-side reset control for a stream.
This operation is stream reset rather than cancellation of a Rust future.
The first poll of poll_reset commits the reset
code. Once committed, reset may interrupt in-flight send-side work such as
data send, flush, or shutdown. Reset does not stop local receive-side byte
delivery.
Required Methods§
fn poll_reset( self: Pin<&mut Self>, cx: &mut Context<'_>, code: VarInt, ) -> Poll<Result<(), E>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".