Struct lettre::AsyncSendmailTransport
source · [−]pub struct AsyncSendmailTransport<E: Executor> { /* private fields */ }
tokio1
or async-std1
only.Expand description
Asynchronously sends emails using the sendmail
command
Implementations
sourceimpl<E> AsyncSendmailTransport<E> where
E: Executor,
impl<E> AsyncSendmailTransport<E> where
E: Executor,
sourcepub fn new() -> Self
Available on crate feature sendmail-transport
only.
pub fn new() -> Self
sendmail-transport
only.Creates a new transport with the sendmail
command
Note: This uses the sendmail
command in the current PATH
. To use another command,
use AsyncSendmailTransport::new_with_command.
sourcepub fn new_with_command<S: Into<OsString>>(command: S) -> Self
Available on crate feature sendmail-transport
only.
pub fn new_with_command<S: Into<OsString>>(command: S) -> Self
sendmail-transport
only.Creates a new transport to the given sendmail command
Trait Implementations
sourceimpl AsyncTransport for AsyncSendmailTransport<AsyncStd1Executor>
Available on crate feature sendmail-transport
only.
impl AsyncTransport for AsyncSendmailTransport<AsyncStd1Executor>
sendmail-transport
only.type Ok = ()
type Ok = ()
tokio1
or async-std1
only.Response produced by the Transport
type Error = Error
type Error = Error
tokio1
or async-std1
only.Error produced by the Transport
sourcefn send_raw<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
envelope: &'life1 Envelope,
email: &'life2 [u8]
) -> Pin<Box<dyn Future<Output = Result<Self::Ok, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn send_raw<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
envelope: &'life1 Envelope,
email: &'life2 [u8]
) -> Pin<Box<dyn Future<Output = Result<Self::Ok, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
tokio1
or async-std1
only.sourcefn send<'life0, 'async_trait>(
&'life0 self,
message: Message
) -> Pin<Box<dyn Future<Output = Result<Self::Ok, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: Sync + 'async_trait,
fn send<'life0, 'async_trait>(
&'life0 self,
message: Message
) -> Pin<Box<dyn Future<Output = Result<Self::Ok, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: Sync + 'async_trait,
tokio1
or async-std1
) and crate feature builder
only.Sends the email
sourceimpl AsyncTransport for AsyncSendmailTransport<Tokio1Executor>
Available on crate feature sendmail-transport
only.
impl AsyncTransport for AsyncSendmailTransport<Tokio1Executor>
sendmail-transport
only.type Ok = ()
type Ok = ()
tokio1
or async-std1
only.Response produced by the Transport
type Error = Error
type Error = Error
tokio1
or async-std1
only.Error produced by the Transport
sourcefn send_raw<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
envelope: &'life1 Envelope,
email: &'life2 [u8]
) -> Pin<Box<dyn Future<Output = Result<Self::Ok, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn send_raw<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
envelope: &'life1 Envelope,
email: &'life2 [u8]
) -> Pin<Box<dyn Future<Output = Result<Self::Ok, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
tokio1
or async-std1
only.sourcefn send<'life0, 'async_trait>(
&'life0 self,
message: Message
) -> Pin<Box<dyn Future<Output = Result<Self::Ok, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: Sync + 'async_trait,
fn send<'life0, 'async_trait>(
&'life0 self,
message: Message
) -> Pin<Box<dyn Future<Output = Result<Self::Ok, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: Sync + 'async_trait,
tokio1
or async-std1
) and crate feature builder
only.Sends the email
sourceimpl<E: Clone + Executor> Clone for AsyncSendmailTransport<E>
Available on crate feature sendmail-transport
only.
impl<E: Clone + Executor> Clone for AsyncSendmailTransport<E>
sendmail-transport
only.sourcefn clone(&self) -> AsyncSendmailTransport<E>
fn clone(&self) -> AsyncSendmailTransport<E>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<E: Debug + Executor> Debug for AsyncSendmailTransport<E>
Available on crate feature sendmail-transport
only.
impl<E: Debug + Executor> Debug for AsyncSendmailTransport<E>
sendmail-transport
only.sourceimpl<E> Default for AsyncSendmailTransport<E> where
E: Executor,
Available on crate feature sendmail-transport
only.
impl<E> Default for AsyncSendmailTransport<E> where
E: Executor,
sendmail-transport
only.sourceimpl<'de, E: Executor> Deserialize<'de> for AsyncSendmailTransport<E>
Available on crate feature sendmail-transport
only.
impl<'de, E: Executor> Deserialize<'de> for AsyncSendmailTransport<E>
sendmail-transport
only.sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<E> RefUnwindSafe for AsyncSendmailTransport<E> where
E: RefUnwindSafe,
impl<E> Send for AsyncSendmailTransport<E>
impl<E> Sync for AsyncSendmailTransport<E>
impl<E> Unpin for AsyncSendmailTransport<E> where
E: Unpin,
impl<E> UnwindSafe for AsyncSendmailTransport<E> where
E: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more