Struct channel::diem_channel::Sender [−][src]
Expand description
The sending end of the diem_channel.
Implementations
This adds the message into the internal queue data structure. This is a synchronous call.
pub fn push_with_feedback(
&self,
key: K,
message: M,
status_ch: Option<Sender<ElementStatus<M>>>
) -> Result<()>
pub fn push_with_feedback(
&self,
key: K,
message: M,
status_ch: Option<Sender<ElementStatus<M>>>
) -> Result<()>
Same as push, but this function also accepts a oneshot::Sender over which the sender can
be notified when the message eventually gets delivered or dropped.
Trait Implementations
Auto Trait Implementations
impl<K, M> RefUnwindSafe for Sender<K, M>
impl<K, M> UnwindSafe for Sender<K, M>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more