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.
Deprecated since 0.5.0. use
CancellationToken(ferroui_system::threading::CancellationToken, re-exported here), which the requests take
Members
new
fn new() -> Self
cancel
fn cancel(self: &Self)
is_cancelled
fn is_cancelled(self: &Self) -> bool
check
fn check(self: &Self) -> Result<(), StudioError>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyToOwnedErasedDestructorIntoEitherCloneDefaultDebugDerefFrom<AiCancellationToken>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.