Struct async_smtp::sendmail::SendmailTransport
source · pub struct SendmailTransport { /* private fields */ }
Expand description
Sends an email using the sendmail
command
Implementations§
source§impl 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§
source§impl Debug for SendmailTransport
impl Debug for SendmailTransport
source§impl Default for SendmailTransport
impl Default for SendmailTransport
source§fn default() -> SendmailTransport
fn default() -> SendmailTransport
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SendmailTransport
impl<'de> Deserialize<'de> for SendmailTransport
source§fn 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
source§impl Serialize for SendmailTransport
impl Serialize for SendmailTransport
source§impl<'a> Transport<'a> for SendmailTransport
impl<'a> Transport<'a> for SendmailTransport
source§fn send<'life0, 'async_trait>(
&'life0 mut self,
email: SendableEmail
) -> Pin<Box<dyn Future<Output = SendmailResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send<'life0, 'async_trait>(
&'life0 mut self,
email: SendableEmail
) -> Pin<Box<dyn Future<Output = SendmailResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sends the email