Trait bip_util::send::TrySender
[−]
[src]
pub trait TrySender<T: Send>: Send { fn try_send(&self, data: T) -> Option<T>; }
Trait for generic sender implementations.
Required Methods
fn try_send(&self, data: T) -> Option<T>
Send data through the concrete channel.
If the channel is full, return the data back to the caller; if the channel has hung up, the channel should NOT return the data back to the caller but SHOULD panic as hang ups are considered program logic errors.
Implementors
impl<S, T> TrySender<T> for SplitSender<S> where S: TrySender<T>, T: Send
impl<T: Send> TrySender<T> for Sender<T>
impl<T: Send> TrySender<T> for SyncSender<T>