Enum zicsv::Address
[−]
[src]
pub enum Address { IPv4(Ipv4Addr), IPv4Network(Ipv4Net), DomainName(String), WildcardDomainName(String), URL(Url), // some variants omitted }
Internet address blocked by Roskomnadzor.
Variants
IPv4(Ipv4Addr)
Blocked by IPv4 address.
IPv4Network(Ipv4Net)
Blocked by IPv4 subnet.
DomainName(String)
Blocked by domain name. Lowercase, in IDN format (punicode encoded if necessary).
WildcardDomainName(String)
Blocked by wildcard domain name. Lowercase, in IDN format (punicode encoded if necessary).
URL(Url)
Blocked by URL.
Methods
impl Address
[src]
pub fn ipv4_from_str(address: &str) -> Result<Self, Error>
[src]
Parse IPv4 address from string.
pub fn ipv4_network_from_str(address: &str) -> Result<Self, Error>
[src]
Parse IPv4 network from string.
pub fn domain_name_from_str(address: &str) -> Result<Self, Error>
[src]
Parse domain name from string.
pub fn wildcard_domain_name_from_str(address: &str) -> Result<Self, Error>
[src]
Parse wildcard domain name from string.
pub fn url_from_str(address: &str) -> Result<Self, Error>
[src]
Parse URL from string.
Trait Implementations
impl Clone for Address
[src]
fn clone(&self) -> Address
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Address
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Eq for Address
[src]
impl Hash for Address
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Ord for Address
[src]
fn cmp(&self, __arg_0: &Address) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
impl PartialEq for Address
[src]
fn eq(&self, __arg_0: &Address) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Address) -> bool
[src]
This method tests for !=
.
impl PartialOrd for Address
[src]
fn partial_cmp(&self, __arg_0: &Address) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Address) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Address) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Address) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Address) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<'a> From<&'a Address> for String
[src]
impl Display for Address
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more