pub enum WaiverReason {
NotExecutable,
Destructive,
ExternalDependency,
TransientState,
PublishedHistory,
}Expand description
Why an executable capability is not benchmarked. Typed, so that a waiver is a
reviewable statement and never a convenience; not_executable is the registry’s own
reason for resources and is never written by hand.
Variants§
NotExecutable
A resource: read, never executed; nothing to time but objects.get, which is.
Destructive
The capability changes something outside this process and cannot be run in a loop.
ExternalDependency
The capability talks to something the benchmark host cannot provide.
TransientState
The capability starts, or answers about, work that exists only while it is running. A benchmark host cannot stage an execution to read, and running the operation in a loop would measure the work rather than the operation.
PublishedHistory
The capability answers about what this repository has published, so its input is a
release: a version tag, the commit it points at, and the projection committed there.
A benchmark fixture is a repository that has published nothing, and the honest answer
in one is a refusal — so the case would time an error path and call it coverage.
Distinct from WaiverReason::ExternalDependency: nothing outside this process is
consulted, and distinct from WaiverReason::TransientState: the history is durable,
it simply does not exist yet where the benchmark runs.
Trait Implementations§
Source§impl Clone for WaiverReason
impl Clone for WaiverReason
Source§fn clone(&self) -> WaiverReason
fn clone(&self) -> WaiverReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for WaiverReason
Source§impl Debug for WaiverReason
impl Debug for WaiverReason
Source§impl<'de> Deserialize<'de> for WaiverReason
impl<'de> Deserialize<'de> for WaiverReason
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>,
impl Eq for WaiverReason
Source§impl JsonSchema for WaiverReason
impl JsonSchema for WaiverReason
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl Ord for WaiverReason
impl Ord for WaiverReason
Source§fn cmp(&self, other: &WaiverReason) -> Ordering
fn cmp(&self, other: &WaiverReason) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for WaiverReason
impl PartialEq for WaiverReason
Source§fn eq(&self, other: &WaiverReason) -> bool
fn eq(&self, other: &WaiverReason) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for WaiverReason
impl PartialOrd for WaiverReason
Source§impl Serialize for WaiverReason
impl Serialize for WaiverReason
impl StructuralPartialEq for WaiverReason
Auto Trait Implementations§
impl Freeze for WaiverReason
impl RefUnwindSafe for WaiverReason
impl Send for WaiverReason
impl Sync for WaiverReason
impl Unpin for WaiverReason
impl UnsafeUnpin for WaiverReason
impl UnwindSafe for WaiverReason
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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
key and return true if they are equal.