pub enum SnapshotSource {
Strategy {
strategy: StrategyConfig,
panels: Vec<String>,
},
Tree {
root: SnapshotNode,
},
}Expand description
What a snapshot restores from: a strategy recipe or a tree topology.
Variants§
Strategy
Strategy-based runtime — rebuild from recipe.
Fields
§
strategy: StrategyConfigThe strategy configuration.
Tree
Non-strategy runtime — rebuild from tree topology.
Fields
§
root: SnapshotNodeThe root node of the tree.
Trait Implementations§
Source§impl Clone for SnapshotSource
impl Clone for SnapshotSource
Source§fn clone(&self) -> SnapshotSource
fn clone(&self) -> SnapshotSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SnapshotSource
impl RefUnwindSafe for SnapshotSource
impl Send for SnapshotSource
impl Sync for SnapshotSource
impl Unpin for SnapshotSource
impl UnsafeUnpin for SnapshotSource
impl UnwindSafe for SnapshotSource
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