pub struct HttpServer<H: HttpServerHandler> { /* private fields */ }
Implementations§
Source§impl<H: HttpServerHandler> HttpServer<H>
impl<H: HttpServerHandler> HttpServer<H>
pub fn new(handler: Arc<H>, settings: HttpServerSettings) -> Self
pub fn get_metrics(&self) -> &Arc<HttpServerMetrics>
pub async fn start(self, listen_addr: SocketAddr) -> Result<()>
Auto Trait Implementations§
impl<H> Freeze for HttpServer<H>
impl<H> RefUnwindSafe for HttpServer<H>where
H: RefUnwindSafe,
impl<H> Send for HttpServer<H>
impl<H> Sync for HttpServer<H>
impl<H> Unpin for HttpServer<H>
impl<H> UnwindSafe for HttpServer<H>where
H: RefUnwindSafe,
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