pub trait Transport: Debug {
    type DataStream: MailDataStream;
    type Error;
    fn send_stream<'s, 'a>(
        &'s self,
        envelope: Envelope
    ) -> Pin<Box<dyn Future<Output = Result<Self::DataStream, Self::Error>> + Sync + Send + 'a, Global>>
Notable traits for Pin<P>
impl<P> Future for Pin<P> where
    P: DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;

    where
        's: 'a
; fn send<'s, 'r, 'a, R>(
        &'s self,
        envelope: Envelope,
        message: R
    ) -> Pin<Box<dyn Future<Output = Result<Self::DataStream, Self::Error>> + Sync + Send + 'a, Global>>
Notable traits for Pin<P>
impl<P> Future for Pin<P> where
    P: DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;

    where
        's: 'a,
        'r: 'a,
        R: 'r + AsyncRead + Unpin + Send + Sync,
        Self::DataStream: Unpin,
        Self::DataStream: Send,
        Self::DataStream: Sync,
        Self::Error: From<Error>
, { ... } }
Expand description

Transport method for emails

Associated Types

Result type for the transport

Required methods

Start sending e-mail and return a stream to write the body to

Provided methods

Send the email

Implementations on Foreign Types

Implementors