Skip to main content

StoppedFuture

Type Alias StoppedFuture 

Source
type StoppedFuture = Pin<Box<dyn Future<Output = Result<(), TransportError>> + Send>>;
Expand description

A boxed SendStream::stopped() future.

Boxed because stopped() returns an opaque impl Future that cannot be named, and StopWatcher has to store one across select! iterations rather than rebuild it. One allocation per forwarded stream.

Aliased Typeยง

#[repr(transparent)]
struct StoppedFuture { /* private fields */ }