pub enum SnapshotSource {
Strategy {
strategy: StrategyConfig,
panels: Box<[Box<str>]>,
},
Tree {
root: SnapshotNode,
},
Adaptive {
breakpoints: Box<[SnapshotBreakpoint]>,
panels: Box<[Box<str>]>,
active_index: usize,
},
}Expand description
What a snapshot restores from: a strategy recipe, a tree topology, or an adaptive breakpoint set.
Variants§
Strategy
Strategy-based runtime — rebuild from recipe.
Tree
Non-strategy runtime — rebuild from tree topology.
Fields
§
root: SnapshotNodeAdaptive
Adaptive runtime — rebuild from breakpoints.
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