pub enum Snapshot<'a> {
Value(&'a Value),
View(&'a SystemView<'a>),
}Expand description
A snapshot to write: XState’s SystemSnapshot as JSON, or the runtime’s
view of an actor system, which serializes as that JSON would without
building it (xmachines_runtime::Actor::persist_view and persist_compact).
Variants§
Value(&'a Value)
The snapshot’s JSON.
View(&'a SystemView<'a>)
An actor system’s view, in its full or compact form.
Trait Implementations§
impl<'a> Copy for Snapshot<'a>
Source§impl<'a> From<&'a SystemView<'a>> for Snapshot<'a>
impl<'a> From<&'a SystemView<'a>> for Snapshot<'a>
Source§fn from(view: &'a SystemView<'a>) -> Self
fn from(view: &'a SystemView<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Snapshot<'a>
impl<'a> !Send for Snapshot<'a>
impl<'a> !Sync for Snapshot<'a>
impl<'a> !UnwindSafe for Snapshot<'a>
impl<'a> Forget for Snapshot<'a>
impl<'a> Freeze for Snapshot<'a>
impl<'a> Move for Snapshot<'a>
impl<'a> Unpin for Snapshot<'a>
impl<'a> UnsafeUnpin for Snapshot<'a>
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