Public Member Functions | Public Attributes | List of all members
grpc_transport_stream_op_batch Struct Reference

#include <transport.h>

Public Member Functions

 grpc_transport_stream_op_batch ()
 

Public Attributes

bool cancel_stream: 1
 
grpc_handler_private_op_data handler_private
 
bool is_traced: 1
 
grpc_closureon_complete = nullptr
 
grpc_transport_stream_op_batch_payloadpayload = nullptr
 
bool recv_initial_metadata: 1
 
bool recv_message: 1
 
bool recv_trailing_metadata: 1
 
bool send_initial_metadata: 1
 
bool send_message: 1
 
bool send_trailing_metadata: 1
 

Detailed Description

Definition at line 284 of file transport.h.

Constructor & Destructor Documentation

◆ grpc_transport_stream_op_batch()

grpc_transport_stream_op_batch::grpc_transport_stream_op_batch ( )
inline

Definition at line 285 of file transport.h.

Member Data Documentation

◆ cancel_stream

bool grpc_transport_stream_op_batch::cancel_stream

Cancel this stream with the provided error

Definition at line 329 of file transport.h.

◆ handler_private

grpc_handler_private_op_data grpc_transport_stream_op_batch::handler_private

Definition at line 338 of file transport.h.

◆ is_traced

bool grpc_transport_stream_op_batch::is_traced

Is this stream traced

Definition at line 332 of file transport.h.

◆ 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.

Definition at line 304 of file transport.h.

◆ 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)

Definition at line 307 of file transport.h.

◆ recv_initial_metadata

bool grpc_transport_stream_op_batch::recv_initial_metadata

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

Definition at line 319 of file transport.h.

◆ recv_message

bool grpc_transport_stream_op_batch::recv_message

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

Definition at line 322 of file transport.h.

◆ recv_trailing_metadata

bool grpc_transport_stream_op_batch::recv_trailing_metadata

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

Definition at line 326 of file transport.h.

◆ send_initial_metadata

bool grpc_transport_stream_op_batch::send_initial_metadata

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

Definition at line 310 of file transport.h.

◆ send_message

bool grpc_transport_stream_op_batch::send_message

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

Definition at line 316 of file transport.h.

◆ send_trailing_metadata

bool grpc_transport_stream_op_batch::send_trailing_metadata

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

Definition at line 313 of file transport.h.


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


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