ISuspensionDriverOf
trait · ferroui-reactiveui · v0.5.0
trait ISuspensionDriverOf<T: 'static>: ISuspensionDriver
A driver that loads and saves a state of the type T (the overloads of ISuspensionDriver
that take a JsonTypeInfo<T>), which the typed host
SuspensionHostOf<T> uses.
Members
load_state_of
fn load_state_of(self: &Self) -> Rc<dyn IObservable<Option<Rc<T>>>>
The persisted state, or None when there is none (LoadState<T>(JsonTypeInfo<T>)).
save_state_of
fn save_state_of(self: &Self, state: Option<Rc<T>>) -> Rc<dyn IObservable<()>>
Saves the state; the observable completes once it is saved
(SaveState<T>(T, JsonTypeInfo<T>)).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.