#[non_exhaustive]pub enum BenchmarkFailureKind {
InvalidRequest,
UnsupportedFeature,
Transport,
Protocol,
Stream,
Provider,
Cancelled,
DeadlineExceeded,
Other,
}Expand description
Stable framework-neutral failure category.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidRequest
Local request validation failed.
UnsupportedFeature
A required feature was unsupported.
Transport
Network or transport failure.
Protocol
Provider wire-protocol failure.
Stream
Stream lifecycle or output assembly failure.
Provider
Provider-side rejection or failure.
Cancelled
Invocation cancellation.
DeadlineExceeded
Invocation deadline exceeded.
Other
Runtime-specific failure without a more portable classification.
Trait Implementations§
Source§impl Clone for BenchmarkFailureKind
impl Clone for BenchmarkFailureKind
Source§fn clone(&self) -> BenchmarkFailureKind
fn clone(&self) -> BenchmarkFailureKind
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 BenchmarkFailureKind
Source§impl Debug for BenchmarkFailureKind
impl Debug for BenchmarkFailureKind
Source§impl<'de> Deserialize<'de> for BenchmarkFailureKind
impl<'de> Deserialize<'de> for BenchmarkFailureKind
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BenchmarkFailureKind
Source§impl From<&ModelErrorKind> for BenchmarkFailureKind
impl From<&ModelErrorKind> for BenchmarkFailureKind
Source§fn from(kind: &ModelErrorKind) -> Self
fn from(kind: &ModelErrorKind) -> Self
Converts to this type from the input type.
Source§impl Ord for BenchmarkFailureKind
impl Ord for BenchmarkFailureKind
Source§fn cmp(&self, other: &BenchmarkFailureKind) -> Ordering
fn cmp(&self, other: &BenchmarkFailureKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BenchmarkFailureKind
impl PartialEq for BenchmarkFailureKind
Source§impl PartialOrd for BenchmarkFailureKind
impl PartialOrd for BenchmarkFailureKind
Source§impl Serialize for BenchmarkFailureKind
impl Serialize for BenchmarkFailureKind
impl StructuralPartialEq for BenchmarkFailureKind
Auto Trait Implementations§
impl Freeze for BenchmarkFailureKind
impl RefUnwindSafe for BenchmarkFailureKind
impl Send for BenchmarkFailureKind
impl Sync for BenchmarkFailureKind
impl Unpin for BenchmarkFailureKind
impl UnsafeUnpin for BenchmarkFailureKind
impl UnwindSafe for BenchmarkFailureKind
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