Struct lettre::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(&mut self, email: SendableEmail) -> FileResult
fn send(&mut self, email: SendableEmail) -> FileResult
Sends the email
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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