Struct grpcio_health::proto::HealthClient
source · pub struct HealthClient {
pub client: Client,
}
Fields§
§client: Client
Implementations§
source§impl HealthClient
impl HealthClient
pub fn new(channel: Channel) -> Self
pub fn check_opt( &self, req: &HealthCheckRequest, opt: CallOption ) -> Result<HealthCheckResponse>
pub fn check(&self, req: &HealthCheckRequest) -> Result<HealthCheckResponse>
pub fn check_async_opt( &self, req: &HealthCheckRequest, opt: CallOption ) -> Result<ClientUnaryReceiver<HealthCheckResponse>>
pub fn check_async( &self, req: &HealthCheckRequest ) -> Result<ClientUnaryReceiver<HealthCheckResponse>>
pub fn watch_opt( &self, req: &HealthCheckRequest, opt: CallOption ) -> Result<ClientSStreamReceiver<HealthCheckResponse>>
pub fn watch( &self, req: &HealthCheckRequest ) -> Result<ClientSStreamReceiver<HealthCheckResponse>>
pub fn spawn<F>(&self, f: F)where F: Future<Output = ()> + Send + 'static,
Trait Implementations§
source§impl Clone for HealthClient
impl Clone for HealthClient
source§fn clone(&self) -> HealthClient
fn clone(&self) -> HealthClient
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 moreAuto Trait Implementations§
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