Enum vsmtp_common::auth::Mechanism
pub enum Mechanism {
Plain,
Login,
CramMd5,
Anonymous,
}Expand description
List of supported SASL Mechanism See https://www.iana.org/assignments/sasl-mechanisms/sasl-mechanisms.xhtml
Variants§
Implementations§
§impl Mechanism
impl Mechanism
pub const fn client_first(self) -> bool
pub const fn client_first(self) -> bool
Does the client must send data first with initial response
pub const fn must_be_under_tls(self) -> bool
pub const fn must_be_under_tls(self) -> bool
Does this mechanism must be under TLS (STARTTLS or Tunnel)
Trait Implementations§
§impl<'de> Deserialize<'de> for Mechanismwhere
Self: FromStr,
<Self as FromStr>::Err: Display,
impl<'de> Deserialize<'de> for Mechanismwhere Self: FromStr, <Self as FromStr>::Err: Display,
§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 Mechanism
impl Ord for Mechanism
§impl PartialOrd<Mechanism> for Mechanism
impl PartialOrd<Mechanism> for Mechanism
§fn partial_cmp(&self, other: &Mechanism) -> Option<Ordering>
fn partial_cmp(&self, other: &Mechanism) -> 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