Struct smtp_client::Sender
source · [−]pub struct Sender<Cfg> { /* private fields */ }
Implementations
sourceimpl<Cfg> Sender<Cfg> where
Cfg: Config,
impl<Cfg> Sender<Cfg> where
Cfg: Config,
sourcepub async fn send<Reader>(
&mut self,
from: Option<&Email>,
to: &Email,
mail: Reader
) -> Result<(), TransportError> where
Reader: AsyncRead,
pub async fn send<Reader>(
&mut self,
from: Option<&Email>,
to: &Email,
mail: Reader
) -> Result<(), TransportError> where
Reader: AsyncRead,
Note: mail
must be a reader of the already escaped and
CRLF-dot-CRLF-terminated message! If this is not the format
you have, please looking into the smtp-message
crate’s
utilities.
Auto Trait Implementations
impl<Cfg> !RefUnwindSafe for Sender<Cfg>
impl<Cfg> Send for Sender<Cfg> where
Cfg: Send + Sync,
impl<Cfg> !Sync for Sender<Cfg>
impl<Cfg> Unpin for Sender<Cfg>
impl<Cfg> !UnwindSafe for Sender<Cfg>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more