pub trait AsyncChannelSendUnlessFull<T> {
    // Required method
    fn send_unless_full(&self, msg: T) -> Result<(), SendError<T>>;
}
Expand description

Push to an async_channel::Sender and ignore if the channel is full

Required Methods§

source

fn send_unless_full(&self, msg: T) -> Result<(), SendError<T>>

Send a message if the channel isn’t full

Implementations on Foreign Types§

source§

impl<T> AsyncChannelSendUnlessFull<T> for Sender<T>

source§

fn send_unless_full(&self, msg: T) -> Result<(), SendError<T>>

Implementors§