Trait seec_channel::SenderT

source ·
pub trait SenderT<T> {
    type Error;

    // Required method
    fn send<'life0, 'async_trait>(
        &'life0 mut self,
        item: T
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

Required Methods§

source

fn send<'life0, 'async_trait>( &'life0 mut self, item: T ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementations on Foreign Types§

source§

impl<T, Codec> SenderT<T> for Sender<T, Codec>
where T: RemoteSend, Codec: Codec,

§

type Error = SendError<T>

source§

fn send<'life0, 'async_trait>( &'life0 mut self, item: T ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

impl<T, Codec, const BUFFER: usize> SenderT<T> for Sender<T, Codec, BUFFER>
where T: RemoteSend, Codec: Codec,

§

type Error = SendError<T>

source§

fn send<'life0, 'async_trait>( &'life0 mut self, item: T ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

source§

impl<T: RemoteSend + Clone> SenderT<T> for MultiSender<T>

§

type Error = Error