pub struct MailService { /* private fields */ }Implementations§
Source§impl MailService
impl MailService
pub fn new( transports: Vec<Arc<dyn MailTransport>>, observer: Arc<dyn MailObserver>, ) -> Result<Self, MailError>
pub fn single( transport: Arc<dyn MailTransport>, observer: Arc<dyn MailObserver>, ) -> Result<Self, MailError>
pub async fn send(&self, message: MailMessage) -> Result<MailReceipt, MailError>
Trait Implementations§
Source§impl Clone for MailService
impl Clone for MailService
Source§fn clone(&self) -> MailService
fn clone(&self) -> MailService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for MailService
impl !UnwindSafe for MailService
impl Freeze for MailService
impl Send for MailService
impl Sync for MailService
impl Unpin for MailService
impl UnsafeUnpin for MailService
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