pub struct UserAgentConfigError {
pub entry: String,
pub reason: String,
}Expand description
An invalid blocked_user_agents entry: the config error
UserAgentFilter::new fails closed with.
Fields§
§entry: StringThe rejected pattern.
reason: StringWhy it was rejected (the ReDoS validator’s reason, or the compile error).
Trait Implementations§
Source§impl Clone for UserAgentConfigError
impl Clone for UserAgentConfigError
Source§impl Debug for UserAgentConfigError
impl Debug for UserAgentConfigError
Source§impl Display for UserAgentConfigError
impl Display for UserAgentConfigError
impl Eq for UserAgentConfigError
Source§impl Error for UserAgentConfigError
impl Error for UserAgentConfigError
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 UserAgentConfigError
impl PartialEq for UserAgentConfigError
impl StructuralPartialEq for UserAgentConfigError
Auto Trait Implementations§
impl Freeze for UserAgentConfigError
impl RefUnwindSafe for UserAgentConfigError
impl Send for UserAgentConfigError
impl Sync for UserAgentConfigError
impl Unpin for UserAgentConfigError
impl UnsafeUnpin for UserAgentConfigError
impl UnwindSafe for UserAgentConfigError
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.