Struct samotop_core::smtp::SmtpContext
source · [−]pub struct SmtpContext {
pub session: SmtpSession,
/* private fields */
}
Fields
session: SmtpSession
Implementations
pub fn new<Svc>(service: Svc, connection: ConnectionInfo) -> Self where
Svc: MailService + Sync + Send + 'static,
pub fn get_or_insert<T: Sync + Send + 'static, F>(
&mut self,
insert: F
) -> &mut T where
F: FnOnce() -> T,
Trait Implementations
Returns the “default value” for a type. Read more