Skip to main content

JoinSender

Trait JoinSender 

Source
pub trait JoinSender<T: Send + 'static> {
    // Required method
    fn send(
        &self,
        item: T,
    ) -> impl Future<Output = ExecutorResult<()>> + Send + '_;
}
Expand description

The sending half of a join fan-in queue.

send may await when the queue is full (bounded backpressure). Returns Err(QueueClosed) if the receiver has been dropped.

Required Methods§

Source

fn send(&self, item: T) -> impl Future<Output = ExecutorResult<()>> + Send + '_

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§