FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SynchronousCompletionAsyncResultSource

    struct · ferroui-base · v0.5.0

    struct SynchronousCompletionAsyncResultSource<T>
    

    The producer side of a SynchronousCompletionAsyncResult.

    View source

    Members

    new

    fn new() -> Self
    

    Source

    async_result

    fn async_result(self: &Self) -> SynchronousCompletionAsyncResult<T>
    

    The consumer side of the operation.

    Source

    set_result

    fn set_result(self: &Self, result: T)
    

    Completes the operation and runs its continuations. Panics if it is already completed.

    Source

    try_set_result

    fn try_set_result(self: &Self, result: T)
    

    Completes the operation unless it is already completed.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Default

    Availability

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