Finished

Trait Finished 

Source
pub trait Finished: Send {
    type Error: Error + ErrorAsErrorCode + Send + Sync + 'static;

    // Required method
    fn finished(self) -> impl Future<Output = Result<(), Self::Error>> + Send;
}
Expand description

Wait for the read stream to finish.

This can happen when the “write” part finishes the stream.

Required Associated Types§

Source

type Error: Error + ErrorAsErrorCode + Send + Sync + 'static

An error that can occur while waiting for a stream to be aborted.

Required Methods§

Source

fn finished(self) -> impl Future<Output = Result<(), Self::Error>> + Send

Wait for a stream to finish.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§