[][src]Trait lettre::Transport

pub trait Transport<'a> {
    type Result;
    fn send(&mut self, email: SendableEmail) -> Self::Result;
}

Transport method for emails

Associated Types

type Result

Result type for the transport

Loading content...

Required methods

fn send(&mut self, email: SendableEmail) -> Self::Result

Sends the email

Loading content...

Implementors

impl<'a> Transport<'a> for FileTransport[src]

type Result = FileResult

impl<'a> Transport<'a> for SendmailTransport[src]

impl<'a> Transport<'a> for SmtpTransport[src]

type Result = SmtpResult

fn send(&mut self, email: SendableEmail) -> SmtpResult[src]

Sends an email

impl<'a> Transport<'a> for StubTransport[src]

type Result = StubResult

Loading content...