pub struct RestorationUpdate {
pub enabled: bool,
pub data: Option<IndexMap<RestorationData, RestorationData>>,
}Expand description
What the host answers when the framework asks for the restoration data it stored.
Flutter’s get on SystemChannels.restoration replies with a map of the same two
entries.
Fields§
§enabled: boolWhether the host wants restoration data at all. When false, state restoration is turned off and the application has no root bucket.
data: Option<IndexMap<RestorationData, RestorationData>>The data the host stored the last time the framework handed it some. None starts
the application with an empty root bucket.
Trait Implementations§
Source§impl Clone for RestorationUpdate
impl Clone for RestorationUpdate
Source§fn clone(&self) -> RestorationUpdate
fn clone(&self) -> RestorationUpdate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RestorationUpdate
impl Debug for RestorationUpdate
Source§impl Default for RestorationUpdate
impl Default for RestorationUpdate
Source§fn default() -> RestorationUpdate
fn default() -> RestorationUpdate
Returns the “default value” for a type. Read more
Source§impl PartialEq for RestorationUpdate
impl PartialEq for RestorationUpdate
impl StructuralPartialEq for RestorationUpdate
Auto Trait Implementations§
impl Freeze for RestorationUpdate
impl RefUnwindSafe for RestorationUpdate
impl Send for RestorationUpdate
impl Sync for RestorationUpdate
impl Unpin for RestorationUpdate
impl UnsafeUnpin for RestorationUpdate
impl UnwindSafe for RestorationUpdate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more