pub enum ShieldError {
Show 13 variants
SqlInjectionDetected(String),
SsrfBlocked(String),
RateLimitExceeded {
retry_after: Option<u64>,
},
ThreatScoreExceeded(f64),
MaliciousInput(String),
PathTraversal(String),
InvalidConnectionString(String),
QuarantineFailed(String),
EmailViolation(String),
EmailBombing(String),
MalwareDetected(String),
EndpointError(String),
QuarantineVaultError(String),
}Expand description
Errors raised by the NexusShield security engine.
Variants§
SqlInjectionDetected(String)
SsrfBlocked(String)
RateLimitExceeded
ThreatScoreExceeded(f64)
MaliciousInput(String)
PathTraversal(String)
InvalidConnectionString(String)
QuarantineFailed(String)
EmailViolation(String)
EmailBombing(String)
MalwareDetected(String)
EndpointError(String)
QuarantineVaultError(String)
Trait Implementations§
Source§impl Debug for ShieldError
impl Debug for ShieldError
Source§impl Display for ShieldError
impl Display for ShieldError
Source§impl Error for ShieldError
impl Error for ShieldError
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()
Source§impl IntoResponse for ShieldError
impl IntoResponse for ShieldError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for ShieldError
impl RefUnwindSafe for ShieldError
impl Send for ShieldError
impl Sync for ShieldError
impl Unpin for ShieldError
impl UnsafeUnpin for ShieldError
impl UnwindSafe for ShieldError
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