pub struct Workload {
pub command: Option<String>,
pub duration: u64,
pub runs: u64,
}Fields§
§command: Option<String>Shell command run while the scheduler is attached. Optional: when absent,
the harness just observes for duration seconds (load runs externally).
duration: u64Hard cap in seconds; the workload is killed after this duration.
runs: u64Repeat the measured run N times; result reports median + stddev.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Workload
impl<'de> Deserialize<'de> for Workload
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 Workload
impl RefUnwindSafe for Workload
impl Send for Workload
impl Sync for Workload
impl Unpin for Workload
impl UnsafeUnpin for Workload
impl UnwindSafe for Workload
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