Trait lettre::transport::EmailTransport
[−]
[src]
pub trait EmailTransport<U> { fn send<T: SendableEmail>(&mut self, email: T) -> U; fn close(&mut self); }
Transport method for emails
Required Methods
fn send<T: SendableEmail>(&mut self, email: T) -> U
Sends the email
fn close(&mut self)
Close the transport explicitly
Implementors
impl EmailTransport<SmtpResult> for SmtpTransport
impl EmailTransport<StubResult> for StubEmailTransport
impl EmailTransport<FileResult> for FileEmailTransport