FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RestoreContext

    struct · ferroui-base · v0.5.0

    struct RestoreContext
    

    Restores the previous current context; see FerroSynchronizationContext::ensure.

    The context is restored when the value is disposed or dropped, whichever comes first.

    View source

    Deprecated since 0.5.0. the dispatcher sets the current priority of its jobs itself; outside of a job use Dispatcher::set_current_priority, which gives the previous one

    Trait implementations

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

    Availability

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