Struct async_smtp::file::FileTransport
source · pub struct FileTransport { /* private fields */ }
Expand description
Writes the content and the envelope information to a file.
Implementations§
source§impl FileTransport
impl FileTransport
sourcepub fn new<P: AsRef<Path>>(path: P) -> FileTransport
pub fn new<P: AsRef<Path>>(path: P) -> FileTransport
Creates a new transport to the given directory
Trait Implementations§
source§impl Debug for FileTransport
impl Debug for FileTransport
source§impl<'de> Deserialize<'de> for FileTransport
impl<'de> Deserialize<'de> for FileTransport
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 FileTransport
impl Serialize for FileTransport
source§impl<'a> Transport<'a> for FileTransport
impl<'a> Transport<'a> for FileTransport
source§fn send<'life0, 'async_trait>(
&'life0 mut self,
email: SendableEmail
) -> Pin<Box<dyn Future<Output = FileResult> + 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 = FileResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sends the email