pub struct Sender<I> { /* private fields */ }
👎Deprecated: use crossbeam_channel instead
Expand description
The sender for the two-way oneshot channel. It is consumed upon sending its data.
👎Deprecated: use crossbeam_channel instead
Get the input for this two-way oneshot channel.
use orphan_crippler::two;
let (mut sender, _) = two::<i32, ()>(43);
assert_eq!(sender.input(), Some(43));
👎Deprecated: use crossbeam_channel instead
Send the result back down the channel to the receiver.
use orphan_crippler::two;
let (sender, receiver) = two::<(), i32>(());
sender.send::<i32>(37);
assert_eq!(receiver.recv(), 37);
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.