Enum vsmtp_protocol::ConnectionKind
#[non_exhaustive]
pub enum ConnectionKind {
Relay,
Submission,
Tunneled,
}Expand description
Type of SMTP connection.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Relay
Connection coming for relay (MTA on port 25) see https://datatracker.ietf.org/doc/html/rfc5321
Submission
Connection coming for submission (MSA on port 587) see https://datatracker.ietf.org/doc/html/rfc6409
Tunneled
Connection coming for submissionS (MSA on port 465) see https://datatracker.ietf.org/doc/html/rfc8314
Trait Implementations§
§impl Clone for ConnectionKind
impl Clone for ConnectionKind
§fn clone(&self) -> ConnectionKind
fn clone(&self) -> ConnectionKind
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 ConnectionKind
impl Debug for ConnectionKind
§impl Display for ConnectionKind
impl Display for ConnectionKind
§impl Hash for ConnectionKind
impl Hash for ConnectionKind
§impl PartialEq<ConnectionKind> for ConnectionKind
impl PartialEq<ConnectionKind> for ConnectionKind
§fn eq(&self, other: &ConnectionKind) -> bool
fn eq(&self, other: &ConnectionKind) -> bool
This method tests for
self and other values to be equal, and is used
by ==.