Struct HealthService
pub struct HealthService { /* private fields */ }Expand description
A service providing implementations of gRPC health checking protocol.
Implementations§
§impl HealthService
impl HealthService
pub fn from_health_reporter(health_reporter: HealthReporter) -> HealthService
pub fn from_health_reporter(health_reporter: HealthReporter) -> HealthService
Create a HealthService, carrying across the statuses from an existing HealthReporter
Trait Implementations§
§impl Debug for HealthService
impl Debug for HealthService
§impl Health for HealthService
impl Health for HealthService
§type WatchStream = WatchStream
type WatchStream = WatchStream
Server streaming response type for the Watch method.
§async fn check(
&self,
request: Request<HealthCheckRequest>,
) -> Result<Response<HealthCheckResponse>, Status>
async fn check( &self, request: Request<HealthCheckRequest>, ) -> Result<Response<HealthCheckResponse>, Status>
Check gets the health of the specified service. If the requested service
is unknown, the call will fail with status NOT_FOUND. If the caller does
not specify a service name, the server should respond with its overall
health status. Read more
§async fn list(
&self,
_request: Request<HealthListRequest>,
) -> Result<Response<HealthListResponse>, Status>
async fn list( &self, _request: Request<HealthListRequest>, ) -> Result<Response<HealthListResponse>, Status>
List provides a non-atomic snapshot of the health of all the available
services. Read more
§async fn watch(
&self,
request: Request<HealthCheckRequest>,
) -> Result<Response<<HealthService as Health>::WatchStream>, Status>
async fn watch( &self, request: Request<HealthCheckRequest>, ) -> Result<Response<<HealthService as Health>::WatchStream>, Status>
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 Freeze for HealthService
impl !RefUnwindSafe for HealthService
impl Send for HealthService
impl Sync for HealthService
impl Unpin for HealthService
impl !UnwindSafe for HealthService
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a rama_grpc::Request§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Create a new
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more