pub struct EmailNotifier { /* private fields */ }Expand description
Notifier for email. One EmailNotifier can only notify one corresponding mailbox.
Implementations§
Source§impl EmailNotifier
impl EmailNotifier
Sourcepub fn new(
smtp_host: &str,
smtp_username: &str,
smtp_password: &str,
recipient: &str,
) -> Result<Self>
pub fn new( smtp_host: &str, smtp_username: &str, smtp_password: &str, recipient: &str, ) -> Result<Self>
§Arguments
smtp_host- SMTP server using TLS connections, e.g.,smtp.gmail.comsmtp_username- Your SMTP username, e.g.,sender@gmail.comsmtp_password- Your SMTP password.recipient- Email recipient, e.g.,recipient@gmail.com
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EmailNotifier
impl RefUnwindSafe for EmailNotifier
impl Send for EmailNotifier
impl Sync for EmailNotifier
impl Unpin for EmailNotifier
impl UnwindSafe for EmailNotifier
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