pub enum SpotError {
MemoryAllocationFailed,
LevelOutOfBounds,
QOutOfBounds,
ExcessThresholdIsNaN,
AnomalyThresholdIsNaN,
DataIsNaN,
NotInitialized,
Unknown(c_int),
}
Expand description
Errors that can occur during SPOT operations
Variants§
MemoryAllocationFailed
Memory allocation failed
LevelOutOfBounds
The level parameter is out of bounds (must be between 0 and 1)
QOutOfBounds
The q parameter is out of bounds (must be between 0 and 1-level)
ExcessThresholdIsNaN
The excess threshold has not been initialized
AnomalyThresholdIsNaN
The anomaly threshold has not been initialized
DataIsNaN
The input data is NaN
NotInitialized
Detector not initialized
Unknown(c_int)
Unknown error with code
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 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