#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_closure * | on_complete = nullptr |
grpc_transport_stream_op_batch_payload * | payload = 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 |
Definition at line 284 of file transport.h.
|
inline |
Definition at line 285 of file transport.h.
bool grpc_transport_stream_op_batch::cancel_stream |
Cancel this stream with the provided error
Definition at line 329 of file transport.h.
grpc_handler_private_op_data grpc_transport_stream_op_batch::handler_private |
Definition at line 338 of file transport.h.
bool grpc_transport_stream_op_batch::is_traced |
Is this stream traced
Definition at line 332 of file transport.h.
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.
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.
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.
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.
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.
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.
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.
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.