pub struct WrkResultBuilder { /* private fields */ }Expand description
Builder for WrkResult.
Implementations§
Source§impl WrkResultBuilder
impl WrkResultBuilder
pub fn success(&mut self, value: bool) -> &mut Self
pub fn error(&mut self, value: String) -> &mut Self
pub fn benchmark(&mut self, value: Benchmark) -> &mut Self
pub fn date(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn requests(&mut self, value: f64) -> &mut Self
pub fn errors(&mut self, value: f64) -> &mut Self
pub fn successes(&mut self, value: f64) -> &mut Self
pub fn requests_sec(&mut self, value: f64) -> &mut Self
pub fn avg_latency_ms(&mut self, value: f64) -> &mut Self
pub fn min_latency_ms(&mut self, value: f64) -> &mut Self
pub fn max_latency_ms(&mut self, value: f64) -> &mut Self
pub fn stdev_latency_ms(&mut self, value: f64) -> &mut Self
pub fn transfer_mb(&mut self, value: f64) -> &mut Self
pub fn errors_connect(&mut self, value: f64) -> &mut Self
pub fn errors_read(&mut self, value: f64) -> &mut Self
pub fn errors_write(&mut self, value: f64) -> &mut Self
pub fn errors_status(&mut self, value: f64) -> &mut Self
pub fn errors_timeout(&mut self, value: f64) -> &mut Self
Trait Implementations§
Source§impl Clone for WrkResultBuilder
impl Clone for WrkResultBuilder
Source§fn clone(&self) -> WrkResultBuilder
fn clone(&self) -> WrkResultBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for WrkResultBuilder
impl RefUnwindSafe for WrkResultBuilder
impl Send for WrkResultBuilder
impl Sync for WrkResultBuilder
impl Unpin for WrkResultBuilder
impl UnwindSafe for WrkResultBuilder
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