ISuspensionDriver
trait · ferroui-reactiveui · v0.5.0
trait ISuspensionDriver
A driver that loads and saves the state of the application to persistent storage
(ISuspensionDriver).
The driver owns the serialization: the state reaches it as the object itself, and it is free
to write it in any format. DummySuspensionDriver stores
nothing.
Members
load_state
fn load_state(self: &Self) -> Rc<dyn IObservable<Option<Rc<dyn Any>>>>
The persisted state of the application, or None when there is none (LoadState()).
save_state
fn save_state(self: &Self, state: Option<Rc<dyn Any>>) -> Rc<dyn IObservable<()>>
Saves the state of the application; the observable completes once it is saved
(SaveState<T>(T)).
invalidate_state
fn invalidate_state(self: &Self) -> Rc<dyn IObservable<()>>
Invalidates the persisted state, for example by deleting it; the observable completes once
it is invalidated (InvalidateState()).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.