FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    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.

    Source

    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.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • Drop
    • Debug
    • From<TaskCompletionSource<T>>

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.