Struct async_smtp::file::FileTransport
source · [−]pub struct FileTransport { /* private fields */ }
Expand description
Writes the content and the envelope information to a file.
Implementations
sourceimpl 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
sourceimpl Debug for FileTransport
impl Debug for FileTransport
sourceimpl<'de> Deserialize<'de> for FileTransport
impl<'de> Deserialize<'de> for FileTransport
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 FileTransport
impl Serialize for FileTransport
sourceimpl<'a> Transport<'a> for FileTransport
impl<'a> Transport<'a> for FileTransport
sourcefn send<'life0, 'async_trait>(
&'life0 mut self,
email: SendableEmail
) -> Pin<Box<dyn Future<Output = FileResult> + 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 = FileResult> + 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 FileTransport
impl Send for FileTransport
impl Sync for FileTransport
impl Unpin for FileTransport
impl UnwindSafe for FileTransport
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