pub struct HealthController;Expand description
Liveness probe endpoint: GET /healthz.
Returns 200 OK whenever the process is alive.
Register this in your Kubernetes livenessProbe.
Implementations§
Source§impl HealthController
impl HealthController
pub fn is_matching_request(request: &Request) -> bool
pub fn process_request(_request: &Request, response: Response) -> Response
Trait Implementations§
Source§impl Controller for HealthController
impl Controller for HealthController
Source§fn is_matching(request: &Request, _connection: &ConnectionInfo) -> bool
fn is_matching(request: &Request, _connection: &ConnectionInfo) -> bool
Returns
true if this controller should handle the given request.
Called in declaration order; the first match wins.Auto Trait Implementations§
impl Freeze for HealthController
impl RefUnwindSafe for HealthController
impl Send for HealthController
impl Sync for HealthController
impl Unpin for HealthController
impl UnsafeUnpin for HealthController
impl UnwindSafe for HealthController
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