pub struct SendmailTransport { /* private fields */ }
Available on crate feature
sendmail-transport
only.Expand description
Sends emails using the sendmail
command
Implementations§
Source§impl SendmailTransport
impl SendmailTransport
Sourcepub fn new() -> SendmailTransport
pub fn new() -> SendmailTransport
Creates a new transport with the sendmail
command
Note: This uses the sendmail
command in the current PATH
. To use another command,
use SendmailTransport::new_with_command.
Sourcepub fn new_with_command<S: Into<OsString>>(command: S) -> SendmailTransport
pub fn new_with_command<S: Into<OsString>>(command: S) -> SendmailTransport
Creates a new transport to the given sendmail command
Trait Implementations§
Source§impl Clone for SendmailTransport
impl Clone for SendmailTransport
Source§fn clone(&self) -> SendmailTransport
fn clone(&self) -> SendmailTransport
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SendmailTransport
impl Debug for SendmailTransport
Source§impl Default for SendmailTransport
impl Default for SendmailTransport
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
Auto Trait Implementations§
impl Freeze for SendmailTransport
impl RefUnwindSafe for SendmailTransport
impl Send for SendmailTransport
impl Sync for SendmailTransport
impl Unpin for SendmailTransport
impl UnwindSafe for SendmailTransport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more