pub struct BenchConfig {
pub scenario: String,
pub dpr: f32,
pub window_w: u32,
pub window_h: u32,
pub duration_ms: u32,
}Expand description
Scripted benchmark parameters read by integration harnesses.
§Examples
use ailloli_ui_bench::BenchConfig;
let config = BenchConfig::default();
assert_eq!((config.window_w, config.window_h), (1280, 720));
assert_eq!(config.duration_ms, 10_000);Fields§
§scenario: StringScenario name; defaults to default.
dpr: f32Requested finite positive device-pixel ratio; defaults to 1.0.
window_w: u32Requested nonzero physical window width; defaults to 1280.
window_h: u32Requested nonzero physical window height; defaults to 720.
duration_ms: u32Requested nonzero run duration in milliseconds; defaults to 10,000.
Trait Implementations§
Source§impl Clone for BenchConfig
impl Clone for BenchConfig
Source§fn clone(&self) -> BenchConfig
fn clone(&self) -> BenchConfig
Returns a copy 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 moreSource§impl Debug for BenchConfig
impl Debug for BenchConfig
Auto Trait Implementations§
impl Freeze for BenchConfig
impl RefUnwindSafe for BenchConfig
impl Send for BenchConfig
impl Sync for BenchConfig
impl Unpin for BenchConfig
impl UnwindSafe for BenchConfig
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