pub enum RiskError {
NonFiniteThreshold,
NegativeThreshold,
NonFiniteAmount,
NegativeAmount,
}Expand description
Errors returned by risk wrappers.
Variants§
NonFiniteThreshold
Risk limit thresholds must be finite.
NegativeThreshold
Risk limit thresholds must not be negative.
NonFiniteAmount
Risk budget amounts must be finite.
NegativeAmount
Risk budget amounts must not be negative.
Trait Implementations§
Source§impl Error for RiskError
impl Error for RiskError
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()
impl Copy for RiskError
impl Eq for RiskError
impl StructuralPartialEq for RiskError
Auto Trait Implementations§
impl Freeze for RiskError
impl RefUnwindSafe for RiskError
impl Send for RiskError
impl Sync for RiskError
impl Unpin for RiskError
impl UnsafeUnpin for RiskError
impl UnwindSafe for RiskError
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