pub struct MigratedState {
pub params: Vec<(u32, f64)>,
pub extra: Option<Vec<u8>>,
}Expand description
Truce-shaped state produced by a successful
crate::plugin::PluginRuntime::migrate_state. Rides the normal
restore pipeline as a synthetic DeserializedState; the next
save writes a regular envelope, so migration is a one-shot door,
not a permanent dual-format reader.
Fields§
§params: Vec<(u32, f64)>§extra: Option<Vec<u8>>Trait Implementations§
Source§impl From<MigratedState> for DeserializedState
impl From<MigratedState> for DeserializedState
Source§fn from(migrated: MigratedState) -> Self
fn from(migrated: MigratedState) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MigratedState
impl RefUnwindSafe for MigratedState
impl Send for MigratedState
impl Sync for MigratedState
impl Unpin for MigratedState
impl UnsafeUnpin for MigratedState
impl UnwindSafe for MigratedState
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