pub struct SmtpService { /* private fields */ }Expand description
Smtp service.
Implementations§
Source§impl SmtpService
impl SmtpService
Sourcepub fn create(
address: SocketAddr,
server_name: String,
handler: Arc<dyn Handler>,
) -> SmtpService
pub fn create( address: SocketAddr, server_name: String, handler: Arc<dyn Handler>, ) -> SmtpService
Create a new service.
This does not listen on the port, call .listen() for that.
Auto Trait Implementations§
impl Freeze for SmtpService
impl !RefUnwindSafe for SmtpService
impl Send for SmtpService
impl Sync for SmtpService
impl Unpin for SmtpService
impl !UnwindSafe for SmtpService
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