FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    new

    fn new(interval_seconds: u32) -> Result<Self, StudioError>
    

    Source

    start

    fn start(self: &mut Self, now_millis: i64)
    

    Source

    stop

    fn stop(self: &mut Self)
    

    Source

    is_running

    fn is_running(self: &Self) -> bool
    

    Source

    tick

    fn tick(self: &mut Self, now_millis: i64, document: &StudioDocument, sessions: &SessionService) -> Result<bool, StudioError>
    

    Source

    Trait implementations

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

    Availability

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