pub struct IpGateError {
pub list: &'static str,
pub entry: String,
}Expand description
An invalid list entry: the config error IpGateConfig::new fails with.
Fields§
§list: &'static strThe list the rejected entry came from (whitelist, blacklist, or
exempt_ips).
entry: StringThe rejected entry.
Trait Implementations§
Source§impl Clone for IpGateError
impl Clone for IpGateError
Source§impl Debug for IpGateError
impl Debug for IpGateError
Source§impl Display for IpGateError
impl Display for IpGateError
impl Eq for IpGateError
Source§impl Error for IpGateError
impl Error for IpGateError
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 IpGateError
impl PartialEq for IpGateError
impl StructuralPartialEq for IpGateError
Auto Trait Implementations§
impl Freeze for IpGateError
impl RefUnwindSafe for IpGateError
impl Send for IpGateError
impl Sync for IpGateError
impl Unpin for IpGateError
impl UnsafeUnpin for IpGateError
impl UnwindSafe for IpGateError
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§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.