Skip to main content

Produce

Trait Produce 

Source
pub trait Produce<T>: Send + Sync {
    // Required method
    fn send(&self, message: T) -> Result<(), Undeliverable<T>>;
}
Expand description

A transport’s producing half.

Required Methods§

Source

fn send(&self, message: T) -> Result<(), Undeliverable<T>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T: Send + 'static> Produce<T> for Sender<T>

Source§

fn send(&self, message: T) -> Result<(), Undeliverable<T>>

Implementors§