pub struct ConnectHealth<B, N, H> { /* private fields */ }Expand description
Check answers for the whole server ("") and for
mkit.transport.v1.TransportService: SERVING when both stores answer
their probe, else NOT_SERVING. Any other name is not_found. Watch
is unimplemented, which tells a Watch-capable client not to retry.
Implementations§
Trait Implementations§
Source§impl<B, N, H> Debug for ConnectHealth<B, N, H>
impl<B, N, H> Debug for ConnectHealth<B, N, H>
Source§impl<B, N, H> Health for ConnectHealth<B, N, H>
impl<B, N, H> Health for ConnectHealth<B, N, H>
Source§async fn check(
&self,
_ctx: RequestContext,
request: ServiceRequest<'_, HealthCheckRequest>,
) -> ServiceResult<HealthCheckResponse>
async fn check( &self, _ctx: RequestContext, request: ServiceRequest<'_, HealthCheckRequest>, ) -> ServiceResult<HealthCheckResponse>
Check returns the serving status of the requested service. If the
service name is empty, the response covers the whole server. Read more
Source§async fn watch(
&self,
_ctx: RequestContext,
_request: ServiceRequest<'_, HealthCheckRequest>,
) -> ServiceResult<ServiceStream<HealthCheckResponse>>
async fn watch( &self, _ctx: RequestContext, _request: ServiceRequest<'_, HealthCheckRequest>, ) -> ServiceResult<ServiceStream<HealthCheckResponse>>
Watch performs a watch for the serving status of the requested service.
The server will immediately send back a message indicating the current
serving status. It will then subsequently send a new message whenever
the service’s serving status changes. Read more
Auto Trait Implementations§
impl<B, N, H> !RefUnwindSafe for ConnectHealth<B, N, H>
impl<B, N, H> !UnwindSafe for ConnectHealth<B, N, H>
impl<B, N, H> Freeze for ConnectHealth<B, N, H>
impl<B, N, H> Send for ConnectHealth<B, N, H>
impl<B, N, H> Sync for ConnectHealth<B, N, H>
impl<B, N, H> Unpin for ConnectHealth<B, N, H>
impl<B, N, H> UnsafeUnpin for ConnectHealth<B, N, H>where
Shared<Pipeline<B, N, H>>: UnsafeUnpin,
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