Trait lettre::Transport[][src]

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

Transport method for emails

Associated Types

type Result[src]

Result type for the transport

Required methods

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

Sends the email

Implementors

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

type Result = FileResult

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

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

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

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

Sends an email

type Result = SmtpResult

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

type Result = StubResult

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