Enum validators::prelude::validators_prelude::IPError
source · pub enum IPError {
Invalid,
LocalMust,
LocalNotAllow,
PortMust,
PortNotAllow,
}
Variants
Invalid
the fallback variant
LocalMust
may not be valid but it is guaranteed that the IP is not local
LocalNotAllow
may not be valid but it is guaranteed that the IP is local
PortMust
may not be valid but missing a port is guaranteed
PortNotAllow
may not be valid and the port part seems to exist
Trait Implementations
sourceimpl Error for IPError
impl Error for IPError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations
impl RefUnwindSafe for IPError
impl Send for IPError
impl Sync for IPError
impl Unpin for IPError
impl UnwindSafe for IPError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
Converts
self
into a collection.