Struct async_smtp::SendableEmail
source · [−]pub struct SendableEmail { /* private fields */ }
Expand description
Sendable email structure
Implementations
sourceimpl SendableEmail
impl SendableEmail
pub fn new<S: AsRef<str>, T: AsRef<[u8]>>(
envelope: Envelope,
message_id: S,
message: T
) -> SendableEmail
pub fn new_with_reader(
envelope: Envelope,
message_id: String,
message: Box<dyn Read + Send + Sync>
) -> SendableEmail
pub fn envelope(&self) -> &Envelope
pub fn message_id(&self) -> &str
pub fn message(self) -> Message
pub async fn message_to_string(self) -> Result<String, Error>
Auto Trait Implementations
impl !RefUnwindSafe for SendableEmail
impl Send for SendableEmail
impl Sync for SendableEmail
impl Unpin for SendableEmail
impl !UnwindSafe for SendableEmail
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