pub struct SmtpAuthCommand<'a> {
pub mechanism: Cow<'a, str>,
pub initial_response: Option<SecretBox<[u8]>>,
}Expand description
The AUTH command (RFC 4954 §4).
Serializes to AUTH <mechanism> [<base64-ir>]\r\n.
Fields§
§mechanism: Cow<'a, str>The SASL mechanism name as it appears on the wire (e.g. "PLAIN").
initial_response: Option<SecretBox<[u8]>>Optional initial response (base64-encoded on serialization).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SmtpAuthCommand<'a>
impl<'a> RefUnwindSafe for SmtpAuthCommand<'a>
impl<'a> Send for SmtpAuthCommand<'a>
impl<'a> Sync for SmtpAuthCommand<'a>
impl<'a> Unpin for SmtpAuthCommand<'a>
impl<'a> UnsafeUnpin for SmtpAuthCommand<'a>
impl<'a> UnwindSafe for SmtpAuthCommand<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.