pub enum PreviewRunMode {
Image {
output: PathBuf,
},
Scenario {
output_dir: PathBuf,
captures_ms: Vec<u64>,
events: Vec<ScenarioEvent>,
},
Semantic,
}Expand description
What a preview run produces.
Variants§
Image
A single PNG capture after the view tree has mounted.
Scenario
A timeline capture: frames at captures_ms with events replayed at
their timestamps.
Fields
§
events: Vec<ScenarioEvent>Input events sorted by timestamp.
Semantic
Semantic accessibility-tree assertions (no render target).
Trait Implementations§
Source§impl Clone for PreviewRunMode
impl Clone for PreviewRunMode
Source§fn clone(&self) -> PreviewRunMode
fn clone(&self) -> PreviewRunMode
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 PreviewRunMode
impl Debug for PreviewRunMode
Source§impl<'de> Deserialize<'de> for PreviewRunMode
impl<'de> Deserialize<'de> for PreviewRunMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PreviewRunMode
impl RefUnwindSafe for PreviewRunMode
impl Send for PreviewRunMode
impl Sync for PreviewRunMode
impl Unpin for PreviewRunMode
impl UnsafeUnpin for PreviewRunMode
impl UnwindSafe for PreviewRunMode
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