Trait lettre::Transport[][src]

pub trait Transport {
    type Ok;
    type Error;
    fn send_raw(
        &self,
        envelope: &Envelope,
        email: &[u8]
    ) -> Result<Self::Ok, Self::Error>; fn send(&self, message: &Message) -> Result<Self::Ok, Self::Error> { ... } }

Blocking Transport method for emails

Associated Types

type Ok[src]

Response produced by the Transport

type Error[src]

Error produced by the Transport

Loading content...

Required methods

fn send_raw(
    &self,
    envelope: &Envelope,
    email: &[u8]
) -> Result<Self::Ok, Self::Error>
[src]

Loading content...

Provided methods

fn send(&self, message: &Message) -> Result<Self::Ok, Self::Error>[src]

This is supported on crate feature builder only.

Sends the email

Loading content...

Implementors

impl Transport for FileTransport[src]

This is supported on crate feature file-transport only.

type Ok = String

type Error = Error

impl Transport for SendmailTransport[src]

This is supported on crate feature sendmail-transport only.

type Ok = ()

type Error = Error

impl Transport for SmtpTransport[src]

This is supported on crate feature smtp-transport only.

type Ok = Response

type Error = Error

fn send_raw(
    &self,
    envelope: &Envelope,
    email: &[u8]
) -> Result<Self::Ok, Self::Error>
[src]

Sends an email

impl Transport for StubTransport[src]

type Ok = ()

type Error = Error

Loading content...