Struct grpcio_health::HealthService
source · pub struct HealthService { /* private fields */ }
Expand description
Simple implementation for Health
service.
Implementations§
source§impl HealthService
impl HealthService
sourcepub fn set_serving_status(&self, service: &str, status: ServingStatus)
pub fn set_serving_status(&self, service: &str, status: ServingStatus)
Resets the serving status of a service or inserts a new service status.
Trait Implementations§
source§impl Clone for HealthService
impl Clone for HealthService
source§fn clone(&self) -> HealthService
fn clone(&self) -> HealthService
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for HealthService
impl Default for HealthService
source§fn default() -> HealthService
fn default() -> HealthService
Returns the “default value” for a type. Read more
source§impl Health for HealthService
impl Health for HealthService
fn check( &mut self, ctx: RpcContext<'_>, req: HealthCheckRequest, sink: UnarySink<HealthCheckResponse> )
fn watch( &mut self, ctx: RpcContext<'_>, req: HealthCheckRequest, sink: ServerStreamingSink<HealthCheckResponse> )
Auto Trait Implementations§
impl RefUnwindSafe for HealthService
impl Send for HealthService
impl Sync for HealthService
impl Unpin for HealthService
impl UnwindSafe for HealthService
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