Skip to main content

SinkFactory

Trait SinkFactory 

Source
pub trait SinkFactory: Send {
    type Sink: ReplicationSink;

    // Required method
    fn connect(&mut self) -> impl Future<Output = Result<Self::Sink>> + Send;
}
Expand description

Produces sinks; called again after a transient failure.

Required Associated Types§

Required Methods§

Source

fn connect(&mut self) -> impl Future<Output = Result<Self::Sink>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§