Enum vsmtp_common::Target
pub enum Target {
Domain(Domain),
Ip(IpAddr),
Socket(SocketAddr),
}Expand description
Possible format of the forward target.
Variants§
Domain(Domain)
the target is a domain name.
Ip(IpAddr)
the target is an ip address, a domain resolution needs to be made.
Socket(SocketAddr)
the target is an ip address with an associated port.
Trait Implementations§
§impl<'de> Deserialize<'de> for Target
impl<'de> Deserialize<'de> for Target
§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 Ord for Target
impl Ord for Target
§impl PartialOrd<Target> for Target
impl PartialOrd<Target> for Target
§fn partial_cmp(&self, other: &Target) -> Option<Ordering>
fn partial_cmp(&self, other: &Target) -> 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