pub enum MantisError {
InvalidParameter {
param: &'static str,
value: String,
reason: &'static str,
},
InsufficientData {
required: usize,
provided: usize,
},
StrategyValidation(String),
BacktestError(String),
}Expand description
Common error type for the crate.
Variants§
Trait Implementations§
Source§impl Debug for MantisError
impl Debug for MantisError
Source§impl Display for MantisError
impl Display for MantisError
Source§impl Error for MantisError
impl Error for MantisError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for MantisError
impl RefUnwindSafe for MantisError
impl Send for MantisError
impl Sync for MantisError
impl Unpin for MantisError
impl UnsafeUnpin for MantisError
impl UnwindSafe for MantisError
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