Struct async_smtp::SendableEmail
source · pub struct SendableEmail { /* private fields */ }
Expand description
Sendable email structure
Implementations§
source§impl SendableEmail
impl SendableEmail
sourcepub fn new(envelope: Envelope, message: impl Into<Vec<u8>>) -> SendableEmail
pub fn new(envelope: Envelope, message: impl Into<Vec<u8>>) -> SendableEmail
Creates new email out of an envelope and a byte slice.
sourcepub fn new_with_reader(
envelope: Envelope,
message: Box<dyn Read + Send + Sync>
) -> SendableEmail
pub fn new_with_reader( envelope: Envelope, message: Box<dyn Read + Send + Sync> ) -> SendableEmail
Creates new email out of an envelope and a byte reader.
Auto Trait Implementations§
impl Freeze for SendableEmail
impl !RefUnwindSafe for SendableEmail
impl Send for SendableEmail
impl Sync for SendableEmail
impl Unpin for SendableEmail
impl !UnwindSafe for SendableEmail
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