pub struct HealthServerHandle { /* private fields */ }Expand description
Handle for a running health endpoint server.
Implementations§
Source§impl HealthServerHandle
impl HealthServerHandle
Sourcepub const fn local_addr(&self) -> SocketAddr
pub const fn local_addr(&self) -> SocketAddr
Returns the bound address for the health endpoint server.
Sourcepub fn shutdown(self) -> Result<(), ServerError>
pub fn shutdown(self) -> Result<(), ServerError>
Stops the health endpoint server and waits for its worker thread to exit.
§Errors
Returns ServerError::HealthEndpoint if the worker thread cannot be
joined cleanly or if the server loop recorded a serving error.
Trait Implementations§
Source§impl Debug for HealthServerHandle
impl Debug for HealthServerHandle
Source§impl Drop for HealthServerHandle
impl Drop for HealthServerHandle
Auto Trait Implementations§
impl !RefUnwindSafe for HealthServerHandle
impl !UnwindSafe for HealthServerHandle
impl Freeze for HealthServerHandle
impl Send for HealthServerHandle
impl Sync for HealthServerHandle
impl Unpin for HealthServerHandle
impl UnsafeUnpin for HealthServerHandle
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