pub enum BenchErrorVariant {
InvalidIterations,
UnknownFunction {
name: String,
},
ExecutionFailed {
reason: String,
},
ConfigError {
message: String,
},
IoError {
message: String,
},
}Expand description
Error variant enum for UniFFI integration.
This enum provides the standard error variants. Copy this and add
#[derive(uniffi::Error)] and #[uniffi(flat_error)] attributes.
Variants§
InvalidIterations
The iteration count was zero.
UnknownFunction
The requested benchmark function was not found.
ExecutionFailed
An error occurred during benchmark execution.
ConfigError
Configuration error.
IoError
I/O error.
Trait Implementations§
Source§impl Clone for BenchErrorVariant
impl Clone for BenchErrorVariant
Source§fn clone(&self) -> BenchErrorVariant
fn clone(&self) -> BenchErrorVariant
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 BenchErrorVariant
impl Debug for BenchErrorVariant
Source§impl<'de> Deserialize<'de> for BenchErrorVariant
impl<'de> Deserialize<'de> for BenchErrorVariant
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
Source§impl From<BenchError> for BenchErrorVariant
impl From<BenchError> for BenchErrorVariant
Source§fn from(err: BenchError) -> Self
fn from(err: BenchError) -> Self
Converts to this type from the input type.
Source§impl From<TimingError> for BenchErrorVariant
impl From<TimingError> for BenchErrorVariant
Source§fn from(err: TimingError) -> Self
fn from(err: TimingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BenchErrorVariant
impl RefUnwindSafe for BenchErrorVariant
impl Send for BenchErrorVariant
impl Sync for BenchErrorVariant
impl Unpin for BenchErrorVariant
impl UnsafeUnpin for BenchErrorVariant
impl UnwindSafe for BenchErrorVariant
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