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