GRPC Core  9.0.0
Public Member Functions | Data Fields
grpc_transport_stream_op_batch Struct Reference

#include <transport.h>

Public Member Functions

 grpc_transport_stream_op_batch ()
 

Data Fields

grpc_closureon_complete = nullptr
 Should be scheduled when all of the non-recv operations in the batch are complete. More...
 
grpc_transport_stream_op_batch_payloadpayload = nullptr
 Values for the stream op (fields set are determined by flags above) More...
 
bool send_initial_metadata: 1
 Send initial metadata to the peer, from the provided metadata batch. More...
 
bool send_trailing_metadata: 1
 Send trailing metadata to the peer, from the provided metadata batch. More...
 
bool send_message: 1
 Send message data to the peer, from the provided byte stream. More...
 
bool recv_initial_metadata: 1
 Receive initial metadata from the stream, into provided metadata batch. More...
 
bool recv_message: 1
 Receive message data from the stream, into provided byte stream. More...
 
bool recv_trailing_metadata: 1
 Receive trailing metadata from the stream, into provided metadata batch. More...
 
bool cancel_stream: 1
 Cancel this stream with the provided error. More...
 
bool is_traced: 1
 Is this stream traced. More...
 
grpc_handler_private_op_data handler_private
 

Constructor & Destructor Documentation

◆ grpc_transport_stream_op_batch()

grpc_transport_stream_op_batch::grpc_transport_stream_op_batch ( )
inline

Field Documentation

◆ cancel_stream

bool grpc_transport_stream_op_batch::cancel_stream

Cancel this stream with the provided error.

◆ handler_private

grpc_handler_private_op_data grpc_transport_stream_op_batch::handler_private

◆ is_traced

bool grpc_transport_stream_op_batch::is_traced

Is this stream traced.

◆ on_complete

grpc_closure* grpc_transport_stream_op_batch::on_complete = nullptr

Should be scheduled when all of the non-recv operations in the batch are complete.

The recv ops (recv_initial_metadata, recv_message, and recv_trailing_metadata) each have their own callbacks. If a batch contains both recv ops and non-recv ops, on_complete should be scheduled as soon as the non-recv ops are complete, regardless of whether or not the recv ops are complete. If a batch contains only recv ops, on_complete can be null.

◆ payload

grpc_transport_stream_op_batch_payload* grpc_transport_stream_op_batch::payload = nullptr

Values for the stream op (fields set are determined by flags above)

◆ recv_initial_metadata

bool grpc_transport_stream_op_batch::recv_initial_metadata

Receive initial metadata from the stream, into provided metadata batch.

◆ recv_message

bool grpc_transport_stream_op_batch::recv_message

Receive message data from the stream, into provided byte stream.

◆ recv_trailing_metadata

bool grpc_transport_stream_op_batch::recv_trailing_metadata

Receive trailing metadata from the stream, into provided metadata batch.

◆ send_initial_metadata

bool grpc_transport_stream_op_batch::send_initial_metadata

Send initial metadata to the peer, from the provided metadata batch.

◆ send_message

bool grpc_transport_stream_op_batch::send_message

Send message data to the peer, from the provided byte stream.

◆ send_trailing_metadata

bool grpc_transport_stream_op_batch::send_trailing_metadata

Send trailing metadata to the peer, from the provided metadata batch.


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