pub struct Sender<Cfg> { /* private fields */ }
Implementations§
Source§impl<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> Freeze for Sender<Cfg>
impl<Cfg> !RefUnwindSafe for Sender<Cfg>
impl<Cfg> Send for Sender<Cfg>
impl<Cfg> !Sync for Sender<Cfg>
impl<Cfg> Unpin for Sender<Cfg>
impl<Cfg> !UnwindSafe for Sender<Cfg>
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