pub struct BenchmarkInvocation { /* private fields */ }Expand description
Result and host-observed timing for one invocation.
Implementations§
Source§impl BenchmarkInvocation
impl BenchmarkInvocation
Sourcepub fn success(
ttft: Option<Duration>,
total: Duration,
) -> Result<Self, BenchmarkInvocationError>
pub fn success( ttft: Option<Duration>, total: Duration, ) -> Result<Self, BenchmarkInvocationError>
Creates one successful invocation.
§Errors
Returns BenchmarkInvocationError when time to first output exceeds
total invocation time.
Sourcepub const fn failure(kind: BenchmarkFailureKind, total: Duration) -> Self
pub const fn failure(kind: BenchmarkFailureKind, total: Duration) -> Self
Creates one failed invocation.
Trait Implementations§
Source§impl Clone for BenchmarkInvocation
impl Clone for BenchmarkInvocation
Source§fn clone(&self) -> BenchmarkInvocation
fn clone(&self) -> BenchmarkInvocation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BenchmarkInvocation
Source§impl Debug for BenchmarkInvocation
impl Debug for BenchmarkInvocation
impl Eq for BenchmarkInvocation
Source§impl PartialEq for BenchmarkInvocation
impl PartialEq for BenchmarkInvocation
impl StructuralPartialEq for BenchmarkInvocation
Auto Trait Implementations§
impl Freeze for BenchmarkInvocation
impl RefUnwindSafe for BenchmarkInvocation
impl Send for BenchmarkInvocation
impl Sync for BenchmarkInvocation
impl Unpin for BenchmarkInvocation
impl UnsafeUnpin for BenchmarkInvocation
impl UnwindSafe for BenchmarkInvocation
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