pub struct BenchmarkTarget {
pub target: ValidationTarget,
pub name: &'static str,
pub url: &'static str,
pub category: BenchmarkCategory,
pub timeout: Duration,
}Expand description
Static benchmark metadata for a validation target.
Fields§
§target: ValidationTargetValidation target enum key.
name: &'static strHuman readable target name.
url: &'static strTarget URL.
category: BenchmarkCategoryBenchmark category.
timeout: DurationPer-target timeout for execution.
Implementations§
Source§impl BenchmarkTarget
impl BenchmarkTarget
Sourcepub const fn from_validation_target(target: ValidationTarget) -> Self
pub const fn from_validation_target(target: ValidationTarget) -> Self
Build benchmark metadata from a ValidationTarget.
Trait Implementations§
Source§impl Clone for BenchmarkTarget
impl Clone for BenchmarkTarget
Source§fn clone(&self) -> BenchmarkTarget
fn clone(&self) -> BenchmarkTarget
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 moreSource§impl Debug for BenchmarkTarget
impl Debug for BenchmarkTarget
Source§impl PartialEq for BenchmarkTarget
impl PartialEq for BenchmarkTarget
Source§impl Serialize for BenchmarkTarget
impl Serialize for BenchmarkTarget
impl Eq for BenchmarkTarget
impl StructuralPartialEq for BenchmarkTarget
Auto Trait Implementations§
impl Freeze for BenchmarkTarget
impl RefUnwindSafe for BenchmarkTarget
impl Send for BenchmarkTarget
impl Sync for BenchmarkTarget
impl Unpin for BenchmarkTarget
impl UnsafeUnpin for BenchmarkTarget
impl UnwindSafe for BenchmarkTarget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.