Public Member Functions | |
grpc.StatusCode | code (self) |
str | details (self) |
Metadata | initial_metadata (self) |
Metadata | trailing_metadata (self) |
None | wait_for_connection (self) |
![]() | |
None | add_done_callback (self, DoneCallbackType callback) |
bool | cancel (self) |
bool | cancelled (self) |
bool | done (self) |
Optional[float] | time_remaining (self) |
The abstract base class of an RPC on the client-side.
Definition at line 89 of file _base_call.py.
grpc.StatusCode grpc.aio._base_call.Call.code | ( | self | ) |
Accesses the status code sent by the server. Returns: The StatusCode value for the RPC.
Reimplemented in grpc.aio._interceptor.UnaryUnaryCallResponse.
Definition at line 109 of file _base_call.py.
str grpc.aio._base_call.Call.details | ( | self | ) |
Accesses the details sent by the server. Returns: The details string of the RPC.
Reimplemented in grpc.aio._interceptor.UnaryUnaryCallResponse.
Definition at line 117 of file _base_call.py.
Metadata grpc.aio._base_call.Call.initial_metadata | ( | self | ) |
The abstract base class of an RPC on the client-side.
Accesses the initial metadata sent by the server. Returns: The initial :term:`metadata`.
Reimplemented in grpc.aio._interceptor.UnaryUnaryCallResponse.
Definition at line 93 of file _base_call.py.
Metadata grpc.aio._base_call.Call.trailing_metadata | ( | self | ) |
Accesses the trailing metadata sent by the server. Returns: The trailing :term:`metadata`.
Reimplemented in grpc.aio._interceptor.UnaryUnaryCallResponse.
Definition at line 101 of file _base_call.py.
None grpc.aio._base_call.Call.wait_for_connection | ( | self | ) |
Waits until connected to peer and raises aio.AioRpcError if failed. This is an EXPERIMENTAL method. This method ensures the RPC has been successfully connected. Otherwise, an AioRpcError will be raised to explain the reason of the connection failure. This method is recommended for building retry mechanisms.
Reimplemented in grpc.aio._interceptor.UnaryUnaryCallResponse, grpc.aio._call.UnaryStreamCall, and grpc.aio._call.UnaryUnaryCall.
Definition at line 125 of file _base_call.py.