Struct async_smtp::sendmail::SendmailTransport
source · [−]pub struct SendmailTransport { /* private fields */ }
Expand description
Sends an email using the sendmail
command
Implementations
sourceimpl SendmailTransport
impl SendmailTransport
sourcepub fn new() -> SendmailTransport
pub fn new() -> SendmailTransport
Creates a new transport with the default /usr/sbin/sendmail
command
sourcepub fn new_with_command<S: Into<String>>(command: S) -> SendmailTransport
pub fn new_with_command<S: Into<String>>(command: S) -> SendmailTransport
Creates a new transport to the given sendmail command
Trait Implementations
sourceimpl Debug for SendmailTransport
impl Debug for SendmailTransport
sourceimpl Default for SendmailTransport
impl Default for SendmailTransport
sourcefn default() -> SendmailTransport
fn default() -> SendmailTransport
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for SendmailTransport
impl<'de> Deserialize<'de> for SendmailTransport
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
sourceimpl Serialize for SendmailTransport
impl Serialize for SendmailTransport
sourceimpl<'a> Transport<'a> for SendmailTransport
impl<'a> Transport<'a> for SendmailTransport
sourcefn send<'life0, 'async_trait>(
&'life0 mut self,
email: SendableEmail
) -> Pin<Box<dyn Future<Output = SendmailResult> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn send<'life0, 'async_trait>(
&'life0 mut self,
email: SendableEmail
) -> Pin<Box<dyn Future<Output = SendmailResult> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Sends the email
fn send_with_timeout<'life0, 'life1, 'async_trait>(
&'life0 mut self,
email: SendableEmail,
_timeout: Option<&'life1 Duration>
) -> Pin<Box<dyn Future<Output = Self::Result> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl RefUnwindSafe for SendmailTransport
impl Send for SendmailTransport
impl Sync for SendmailTransport
impl Unpin for SendmailTransport
impl UnwindSafe for SendmailTransport
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