AutoSaveScheduler
struct · ferroui-protranslate-studio · v0.5.0
struct AutoSaveScheduler
Host-driven scheduling: call tick from a UI timer or an executor. No worker
threads borrow a document, and failed saves remain due for the next tick.
Members
new
fn new(interval_seconds: u32) -> Result<Self, StudioError>
start
fn start(self: &mut Self, now_millis: i64)
stop
fn stop(self: &mut Self)
is_running
fn is_running(self: &Self) -> bool
tick
fn tick(self: &mut Self, now_millis: i64, document: &StudioDocument, sessions: &SessionService) -> Result<bool, StudioError>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.