pub trait Sink: Send {
type Location: Send + 'static;
// Required methods
fn prepare(
&mut self,
target: Target<'_>,
) -> impl Future<Output = Result<Prepared<Self::Location>, Error>> + Send;
fn write_chunk(
&mut self,
chunk: &[u8],
) -> impl Future<Output = Result<(), Error>> + Send;
fn restart(&mut self) -> impl Future<Output = Result<(), Error>> + Send;
fn finalize(
self,
) -> impl Future<Output = Result<Self::Location, Error>> + Send;
}Required Associated Types§
Required Methods§
fn prepare( &mut self, target: Target<'_>, ) -> impl Future<Output = Result<Prepared<Self::Location>, Error>> + Send
fn write_chunk( &mut self, chunk: &[u8], ) -> impl Future<Output = Result<(), Error>> + Send
fn restart(&mut self) -> impl Future<Output = Result<(), Error>> + Send
fn finalize(self) -> impl Future<Output = Result<Self::Location, Error>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".