pub struct SmtpServer { /* private fields */ }Expand description
SMTP server
Implementations§
Source§impl SmtpServer
impl SmtpServer
Sourcepub fn new(
config: SmtpConfig,
spec_registry: Arc<SmtpSpecRegistry>,
) -> Result<Self>
pub fn new( config: SmtpConfig, spec_registry: Arc<SmtpSpecRegistry>, ) -> Result<Self>
Create a new SMTP server
Sourcepub fn with_middleware(
config: SmtpConfig,
spec_registry: Arc<SmtpSpecRegistry>,
middleware_chain: Arc<MiddlewareChain>,
) -> Result<Self>
pub fn with_middleware( config: SmtpConfig, spec_registry: Arc<SmtpSpecRegistry>, middleware_chain: Arc<MiddlewareChain>, ) -> Result<Self>
Create a new SMTP server with custom middleware
Auto Trait Implementations§
impl Freeze for SmtpServer
impl !RefUnwindSafe for SmtpServer
impl Send for SmtpServer
impl Sync for SmtpServer
impl Unpin for SmtpServer
impl !UnwindSafe for SmtpServer
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more