pub enum SmtpAuthData {
Continue(SecretBox<[u8]>),
Cancel,
}Expand description
Data line used during SMTP AUTH exchange.
Holds the raw binary data, i.e., a Vec<u8>, not the BASE64
string.
Variants§
Continue(SecretBox<[u8]>)
Continue SASL authentication with response data.
Cancel
Cancel SASL authentication.
The client sends a single * to cancel the authentication
exchange.
Implementations§
Source§impl SmtpAuthData
impl SmtpAuthData
Sourcepub fn continue(data: impl Into<Box<[u8]>>) -> Self
pub fn continue(data: impl Into<Box<[u8]>>) -> Self
Create a continuation response with the given data.
Sourcepub fn is_complete(buf: &[u8]) -> bool
pub fn is_complete(buf: &[u8]) -> bool
Returns true if buf contains a complete auth data line.
Sourcepub fn parse(input: &[u8]) -> Result<SmtpAuthData, SmtpAuthDataError>
pub fn parse(input: &[u8]) -> Result<SmtpAuthData, SmtpAuthDataError>
Parse auth data from bytes.
Trait Implementations§
Source§impl Debug for SmtpAuthData
impl Debug for SmtpAuthData
Auto Trait Implementations§
impl Freeze for SmtpAuthData
impl RefUnwindSafe for SmtpAuthData
impl Send for SmtpAuthData
impl Sync for SmtpAuthData
impl Unpin for SmtpAuthData
impl UnsafeUnpin for SmtpAuthData
impl UnwindSafe for SmtpAuthData
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.