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