pub enum AimdsError {
Detection(String),
Analysis(String),
Response(String),
Configuration(String),
Io(Error),
Serialization(Error),
Validation(String),
Timeout(u64),
ExternalService {
service: String,
message: String,
},
Internal(String),
Other(Error),
}Expand description
AIMDS error types
Variants§
Detection(String)
Analysis(String)
Response(String)
Configuration(String)
Io(Error)
Serialization(Error)
Validation(String)
Timeout(u64)
ExternalService
Internal(String)
Other(Error)
Implementations§
Source§impl AimdsError
impl AimdsError
Sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
Check if the error is retryable
Sourcepub fn severity(&self) -> ErrorSeverity
pub fn severity(&self) -> ErrorSeverity
Get error severity level
Trait Implementations§
Source§impl Debug for AimdsError
impl Debug for AimdsError
Source§impl Display for AimdsError
impl Display for AimdsError
Source§impl Error for AimdsError
impl Error for AimdsError
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()
Source§impl From<Error> for AimdsError
impl From<Error> for AimdsError
Source§impl From<Error> for AimdsError
impl From<Error> for AimdsError
Auto Trait Implementations§
impl Freeze for AimdsError
impl !RefUnwindSafe for AimdsError
impl Send for AimdsError
impl Sync for AimdsError
impl Unpin for AimdsError
impl !UnwindSafe for AimdsError
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