pub struct HttpHealthServer { /* private fields */ }Expand description
HTTP server that exposes health endpoints
Implementations§
Source§impl HttpHealthServer
impl HttpHealthServer
pub fn new(bind_addr: SocketAddr) -> Self
pub fn with_health_monitor(self, monitor: HealthMonitor) -> Self
pub async fn start(self) -> Result<()>
Auto Trait Implementations§
impl Freeze for HttpHealthServer
impl !RefUnwindSafe for HttpHealthServer
impl Send for HttpHealthServer
impl Sync for HttpHealthServer
impl Unpin for HttpHealthServer
impl !UnwindSafe for HttpHealthServer
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