FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AutoPersistMetadataMixins

    trait · ferroui-reactiveui · v0.5.0

    trait AutoPersistMetadataMixins<T: IReactiveObject>
    

    AutoPersist with explicit metadata of persistence (the metadata-based extension members of IReactiveObject in AutoPersistHelperMixins.Metadata), on the shared handle of an object.

    Upstream Here
    AutoPersist(Func, AutoPersistMetadata) auto_persist_metadata
    AutoPersist(Func, AutoPersistMetadata, TimeSpan?) auto_persist_metadata_with_interval
    AutoPersist<TDontCare>(Func, IObservable<TDontCare>, AutoPersistMetadata, TimeSpan?), and without the interval auto_persist_metadata_with

    View source

    Members

    auto_persist_metadata

    fn auto_persist_metadata(self: &Self, do_persist: impl Fn(Rc<T>) -> Rc<dyn IObservable<()>> + 'static, metadata: Rc<AutoPersistMetadata>) -> Rc<dyn IDisposable>
    

    Saves the object after a property of metadata changes, with the default interval (AutoPersist(Func, AutoPersistMetadata)).

    Source

    auto_persist_metadata_with_interval

    fn auto_persist_metadata_with_interval(self: &Self, do_persist: impl Fn(Rc<T>) -> Rc<dyn IObservable<()>> + 'static, metadata: Rc<AutoPersistMetadata>, interval: Option<Duration>) -> Rc<dyn IDisposable>
    

    auto_persist_metadata, throttled on interval (AutoPersist(Func, AutoPersistMetadata, TimeSpan?)).

    Source

    auto_persist_metadata_with

    fn auto_persist_metadata_with<S: 'static>(self: &Self, do_persist: impl Fn(Rc<T>) -> Rc<dyn IObservable<()>> + 'static, manual_save_signal: Rc<dyn IObservable<S>>, metadata: Rc<AutoPersistMetadata>, interval: Option<Duration>) -> Rc<dyn IDisposable>
    

    auto_persist_metadata, throttled on interval, and also whenever manual_save_signal ticks (AutoPersist<TDontCare>(Func, IObservable<TDontCare>, AutoPersistMetadata, TimeSpan?)).

    Panics when the metadata is not of a data contract (ArgumentException).

    Source

    Trait implementations

    Availability

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