Sender
struct · ferroui-system · v0.5.0
struct Sender<T>
The end of a channel that sends the value: once, from any thread.
Dropping it without sending cancels the channel: the receiver ends with Canceled.
Members
send
fn send(self: Self, value: T) -> Result<(), T>
Sends the value and wakes whoever waits for it, inside this call. Gives the value back when the receiver (and every clone of its shared form) is gone.
is_closed
fn is_closed(self: &Self) -> bool
Whether the receiver (and every clone of its shared form) is gone, so that a value sent would be given back.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyDropDebugFrom<TaskCompletionSource<T>>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.