pub enum AbuseError {
InvalidLimit(String),
InvalidTrusted(String),
DuplicateQuota(String),
}Expand description
Why an abuse policy was rejected.
Variants§
InvalidLimit(String)
A limit allows no requests or has an empty window.
InvalidTrusted(String)
A trusted entry is not an IP address or CIDR block.
DuplicateQuota(String)
Two quotas name the same route.
Trait Implementations§
Source§impl Clone for AbuseError
impl Clone for AbuseError
Source§impl Debug for AbuseError
impl Debug for AbuseError
Source§impl Display for AbuseError
impl Display for AbuseError
impl Eq for AbuseError
Source§impl Error for AbuseError
impl Error for AbuseError
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 PartialEq for AbuseError
impl PartialEq for AbuseError
impl StructuralPartialEq for AbuseError
Auto Trait Implementations§
impl Forget for AbuseError
impl Freeze for AbuseError
impl RefUnwindSafe for AbuseError
impl Send for AbuseError
impl Sync for AbuseError
impl Unpin for AbuseError
impl UnsafeUnpin for AbuseError
impl UnwindSafe for AbuseError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.