FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Flatten

    struct · ferroui-system · v0.5.0

    struct Flatten<T>
    

    A Shared of a Result<T, ObservableError> as a future of that result (Shared::flatten): the futures that the asynchronous forms of the reactive libraries take are futures of Result<T, ObservableError>, and an abort or a panic of the task is an error of that result (Shared::result). Clones await the same outcome.

    View source

    Members

    into_shared

    fn into_shared(self: Self) -> Shared<Result<T, ObservableError>>
    

    The Shared it awaits.

    Source

    shared

    fn shared(self: &Self) -> &Shared<Result<T, ObservableError>>
    

    The Shared it awaits.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • IntoFuture
    • ToOwned
    • Clone
    • Future
    • Debug

    Availability

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