pub trait SinkFactory: Send {
type Sink: Sink<Location = Self::Location> + 'static;
type Location: DownloadLocation;
// Required method
fn make(
&mut self,
target: Target<'_>,
) -> impl Future<Output = Result<Self::Sink, Error>> + Send;
}Expand description
Builds a per-item Sink. One factory drives a whole stream of items
(singular call sites pass a one-element stream).
Required Associated Types§
Required Methods§
fn make( &mut self, target: Target<'_>, ) -> impl Future<Output = Result<Self::Sink, Error>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".