pub enum SpotError {
MemoryAllocationFailed = 1_000,
LevelOutOfBounds = 1_001,
QOutOfBounds = 1_002,
ExcessThresholdIsNaN = 1_003,
AnomalyThresholdIsNaN = 1_004,
DataIsNaN = 1_005,
}Expand description
Error codes that match the C implementation
Variants§
MemoryAllocationFailed = 1_000
Memory allocation failed
LevelOutOfBounds = 1_001
The level parameter must be between 0 and 1
QOutOfBounds = 1_002
The q parameter must be between 0 and 1-level
ExcessThresholdIsNaN = 1_003
The excess threshold has not been initialized
AnomalyThresholdIsNaN = 1_004
The anomaly threshold has not been initialized
DataIsNaN = 1_005
The input data is NaN
Implementations§
Trait Implementations§
Source§impl Error for SpotError
impl Error for SpotError
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 SpotError
impl Eq for SpotError
impl StructuralPartialEq for SpotError
Auto Trait Implementations§
impl Freeze for SpotError
impl RefUnwindSafe for SpotError
impl Send for SpotError
impl Sync for SpotError
impl Unpin for SpotError
impl UnwindSafe for SpotError
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