Skip to main content

Sender

Trait Sender 

Source
pub trait Sender: ErrorType {
    type Data<'a>: Send;

    // Required method
    async fn send(&mut self, value: Self::Data<'_>) -> Result<(), Self::Error>;
}

Required Associated Types§

Source

type Data<'a>: Send

Required Methods§

Source

async fn send(&mut self, value: Self::Data<'_>) -> Result<(), Self::Error>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<S> Sender for &mut S
where S: Sender,

Source§

type Data<'a> = <S as Sender>::Data<'a>

Source§

async fn send(&mut self, value: Self::Data<'_>) -> Result<(), Self::Error>

Implementors§