Enum vsmtp_common::ClientName
pub enum ClientName {
Domain(Domain),
Ip4(Ipv4Addr),
Ip6(Ipv6Addr),
}Expand description
Identity of the client.
Variants§
Domain(Domain)
FQDN of the client.
Ip4(Ipv4Addr)
IP address of the client.
Ip6(Ipv6Addr)
IP address of the client.
Trait Implementations§
§impl Clone for ClientName
impl Clone for ClientName
§fn clone(&self) -> ClientName
fn clone(&self) -> ClientName
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ClientName
impl Debug for ClientName
§impl<'de> Deserialize<'de> for ClientName
impl<'de> Deserialize<'de> for ClientName
§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for ClientName
impl Display for ClientName
§impl Hash for ClientName
impl Hash for ClientName
§impl Ord for ClientName
impl Ord for ClientName
§impl PartialEq<ClientName> for ClientName
impl PartialEq<ClientName> for ClientName
§fn eq(&self, other: &ClientName) -> bool
fn eq(&self, other: &ClientName) -> bool
This method tests for
self and other values to be equal, and is used
by ==.§impl PartialOrd<ClientName> for ClientName
impl PartialOrd<ClientName> for ClientName
§fn partial_cmp(&self, other: &ClientName) -> Option<Ordering>
fn partial_cmp(&self, other: &ClientName) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more