pub enum BenchErrorFfi {
InvalidIterations,
UnknownFunction {
name: String,
},
ExecutionFailed {
reason: String,
},
ConfigError {
message: String,
},
IoError {
message: String,
},
}Expand description
FFI-ready error type.
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 BenchErrorFfi
impl Clone for BenchErrorFfi
Source§fn clone(&self) -> BenchErrorFfi
fn clone(&self) -> BenchErrorFfi
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 BenchErrorFfi
impl Debug for BenchErrorFfi
Source§impl<'de> Deserialize<'de> for BenchErrorFfi
impl<'de> Deserialize<'de> for BenchErrorFfi
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 BenchErrorFfi
impl From<BenchError> for BenchErrorFfi
Source§fn from(err: BenchError) -> Self
fn from(err: BenchError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BenchErrorFfi
impl RefUnwindSafe for BenchErrorFfi
impl Send for BenchErrorFfi
impl Sync for BenchErrorFfi
impl Unpin for BenchErrorFfi
impl UnsafeUnpin for BenchErrorFfi
impl UnwindSafe for BenchErrorFfi
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