Enum vsmtp_protocol::AuthError
pub enum AuthError {
ClientMustNotStart,
ValidationError(Box<dyn Error + Send + Sync>),
Canceled,
Base64 {
source: DecodeError,
},
IO(Error),
SessionError(SessionError),
ConfigError(SASLError),
}Expand description
The possible outcomes of a SMTP-SASL handshake.
Variants§
ClientMustNotStart
Verb::Auth contains an initial buffer where the mechanism is not supposed to.
ValidationError(Box<dyn Error + Send + Sync>)
The authentication has failed.
Canceled
The client send *\r\n during the SASL handshake.
Base64
Fields
§
source: DecodeErrorInner error.
The buffer sent/received during the SMTP+SASL handshake must be base64 encoded.
IO(Error)
Error while reading/writing to the underlying stream.
SessionError(SessionError)
Other error produced by the SASL backend.
ConfigError(SASLError)
Error while initializing the SASL backend.
Trait Implementations§
§impl Error for AuthError
impl Error for AuthError
§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
§impl From<DecodeError> for AuthError
impl From<DecodeError> for AuthError
§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.