Enum validators::DomainError [−][src]
pub enum DomainError {
Invalid,
IPv4Must,
IPv4NotAllow,
LocalMust,
LocalNotAllow,
AtLeastTwoLabelsMust,
AtLeastTwoLabelsNotAllow,
PortMust,
PortNotAllow,
}Variants
the fallback variant
may not be valid but it is guaranteed that the domain part is not an IPv4
may not be valid but it is guaranteed that the domain part is an IPv4
may not be valid but it is guaranteed that the domain part is not local
may not be valid but it is guaranteed that the domain part is local
may not be valid but it is guaranteed that the domain part has only one label
may not be valid but it is guaranteed that the domain part has at least two labels
may not be valid but missing a port is guaranteed
may not be valid and the port part seems to exist
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DomainError
impl Send for DomainError
impl Sync for DomainError
impl Unpin for DomainError
impl UnwindSafe for DomainError
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self into a collection.