Public Member Functions | List of all members
grpc.aio._base_call.Call Class Reference
Inheritance diagram for grpc.aio._base_call.Call:
Inheritance graph
[legend]

Public Member Functions

grpc.StatusCode code (self)
 
str details (self)
 
Metadata initial_metadata (self)
 
Metadata trailing_metadata (self)
 
None wait_for_connection (self)
 
- Public Member Functions inherited from grpc.aio._base_call.RpcContext
None add_done_callback (self, DoneCallbackType callback)
 
bool cancel (self)
 
bool cancelled (self)
 
bool done (self)
 
Optional[float] time_remaining (self)
 

Detailed Description

The abstract base class of an RPC on the client-side.

Definition at line 89 of file _base_call.py.

Member Function Documentation

◆ code()

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.

◆ details()

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.

◆ initial_metadata()

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.

◆ trailing_metadata()

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.

◆ wait_for_connection()

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.


The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:32