Trait mogwai::sink::Sink

source ·
pub trait Sink<Item> {
    fn send(
        &self,
        item: Item
    ) -> Pin<Box<dyn Future<Output = Result<(), SendError>> + Send + '_>>; fn try_send(&self, item: Item) -> Result<(), TrySendError>; }

Required Methods§

source

fn send(
    &self,
    item: Item
) -> Pin<Box<dyn Future<Output = Result<(), SendError>> + Send + '_>>

source

fn try_send(&self, item: Item) -> Result<(), TrySendError>

Implementations on Foreign Types§

source§

impl<S: ?Sized + Sink<Item>, Item> Sink<Item> for Box<S>

source§

fn send(
    &self,
    item: Item
) -> Pin<Box<dyn Future<Output = Result<(), SendError>> + Send + '_>>

source§

fn try_send(&self, item: Item) -> Result<(), TrySendError>

Implementors§

source§

impl<Item: Clone + Send + Sync> Sink<Item> for mogwai::channel::broadcast::Sender<Item>

source§

impl<Item: Send + Sync> Sink<Item> for mogwai::channel::mpsc::Sender<Item>

source§

impl<S, X, Y, F> Sink<X> for ContraFilterMap<S, X, Y, F>where
    S: Sink<Y> + Unpin,
    F: Fn(X) -> Option<Y> + Unpin,
    X: Unpin,
    Y: Unpin,

source§

impl<S, X, Y, F> Sink<X> for ContraMap<S, X, Y, F>where
    S: Sink<Y> + Unpin,
    F: Fn(X) -> Y + Unpin,
    X: Unpin,
    Y: Unpin,

source§

impl<T: Clone + Send + Sync> Sink<T> for FanInput<T>

source§

impl<T: Clone + Send + Sync> Sink<T> for Output<T>

source§

impl<T: Send + Sync + Clone> Sink<T> for Captured<T>

source§

impl<T: Send> Sink<T> for Input<T>