pub struct HealthClient { /* private fields */ }Implementations§
Source§impl HealthClient
impl HealthClient
Sourcepub async fn livez(&self) -> Result<HealthStatus>
pub async fn livez(&self) -> Result<HealthStatus>
Check if the node is alive and get its health status
Sourcepub async fn get_health(&self) -> Result<GetHealthResponse>
pub async fn get_health(&self) -> Result<GetHealthResponse>
Get the full health response
Sourcepub async fn is_healthy(&self) -> Result<bool>
pub async fn is_healthy(&self) -> Result<bool>
Check if the node is healthy (status is PASS)
Auto Trait Implementations§
impl !Freeze for HealthClient
impl !RefUnwindSafe for HealthClient
impl Send for HealthClient
impl Sync for HealthClient
impl Unpin for HealthClient
impl !UnwindSafe for HealthClient
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request