pub trait AsyncChannelSendUnlessFull<T> {
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
sourcefn send_unless_full(&self, msg: T) -> Result<(), SendError<T>>
fn send_unless_full(&self, msg: T) -> Result<(), SendError<T>>
Send a message if the channel isn’t full