pub struct Plan {
pub cmd: Vec<String>,
pub warmup: u32,
pub runs: u32,
pub dir: Option<PathBuf>,
pub settings: Settings,
}Fields§
§cmd: Vec<String>§warmup: u32§runs: u32§dir: Option<PathBuf>Directory to run in. Declared benchmarks resolve relative commands
against tak.toml’s directory, not the caller’s — otherwise the same
benchmark measures different things depending on where you stood.
settings: SettingsResolved settings. Carried on the plan rather than read from a global so a test can measure under a different configuration without touching the environment of the whole test binary.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Plan
impl Freeze for Plan
impl Move for Plan
impl RefUnwindSafe for Plan
impl Send for Planwhere
RawVecInner: Send,
impl Sync for Planwhere
RawVecInner: Sync,
impl Unpin for Plan
impl UnsafeUnpin for Planwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for Planwhere
RawVecInner: UnwindSafe,
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