FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AiCancellationToken

    struct · ferroui-protranslate-studio · v0.5.0

    struct AiCancellationToken
    

    The cancellation of an AI request: a flag that any clone sets, and that wakes the requests waiting for it.

    View source

    Deprecated since 0.5.0. use CancellationToken (ferroui_system::threading::CancellationToken, re-exported here), which the requests take

    Members

    new

    fn new() -> Self
    

    Source

    cancel

    fn cancel(self: &Self)
    

    Source

    is_cancelled

    fn is_cancelled(self: &Self) -> bool
    

    Source

    check

    fn check(self: &Self) -> Result<(), StudioError>
    

    Source

    Trait implementations

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

    Availability

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