pub struct WorkloadController { /* private fields */ }Expand description
Workload controller
Implementations§
Source§impl WorkloadController
impl WorkloadController
Sourcepub fn new(pattern: WorkloadPattern) -> Self
pub fn new(pattern: WorkloadPattern) -> Self
Create a new workload controller
Sourcepub fn current_rate(&self) -> u64
pub fn current_rate(&self) -> u64
Get current target rate
Sourcepub fn next_delay(&self) -> Duration
pub fn next_delay(&self) -> Duration
Get delay until next request
Auto Trait Implementations§
impl Freeze for WorkloadController
impl RefUnwindSafe for WorkloadController
impl Send for WorkloadController
impl Sync for WorkloadController
impl Unpin for WorkloadController
impl UnsafeUnpin for WorkloadController
impl UnwindSafe for WorkloadController
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