Trait Finish

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

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

Finish the write stream.

Call when all data has been submitted and no further data will be written.

Required Associated Types§

Source

type Error: Error + Send + Sync + 'static

An error that can occur while finishing the stream.

Required Methods§

Source

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

Finish the stream.

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§