Struct lettre::smtp::SmtpTransport
source · pub struct SmtpTransport { /* private fields */ }
Expand description
Structure that implements the high level SMTP client
Implementations
sourceimpl<'a> SmtpTransport
impl<'a> SmtpTransport
sourcepub fn new(builder: SmtpClient) -> SmtpTransport
pub fn new(builder: SmtpClient) -> SmtpTransport
Creates a new SMTP client
It does not connect to the server, but only creates the SmtpTransport
Trait Implementations
sourceimpl<'a> Transport<'a> for SmtpTransport
impl<'a> Transport<'a> for SmtpTransport
sourcefn send(&mut self, email: SendableEmail) -> SmtpResult
fn send(&mut self, email: SendableEmail) -> SmtpResult
Sends an email
Auto Trait Implementations
impl RefUnwindSafe for SmtpTransport
impl Send for SmtpTransport
impl Sync for SmtpTransport
impl Unpin for SmtpTransport
impl UnwindSafe for SmtpTransport
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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