#include </data/code/userver/libraries/grpc-proto-structs/include/userver/grpc-proto-structs/client/stream.hpp>
proto-struct based ReaderWriter adapter.
Definition at line 106 of file stream.hpp.
Public Types | |
| using | ProtobufResponse = proto_structs::traits::CompatibleMessageType<StructsResponse> |
| using | ProtobufRequest = proto_structs::traits::CompatibleMessageType<StructsRequest> |
| using | ProtobufReaderWriter = ugrpc::client::ReaderWriter<ProtobufRequest, ProtobufResponse> |
Public Member Functions | |
| ReaderWriter (ProtobufReaderWriter &&reader_writer) | |
| ReaderWriter (ReaderWriter &&)=default | |
| ReaderWriter & | operator= (ReaderWriter &&)=default |
| std::optional< StructsResponse > | Read () |
| Await and read the next incoming message. | |
| StreamReadFuture< StructsResponse > | ReadAsync () |
| Return future to read next incoming result. | |
| bool | Write (const StructsRequest &request) |
| Write the next outgoing message. | |
| bool | Write (StructsRequest &&request) |
| Write the next outgoing message. | |
| void | WriteAndCheck (const StructsRequest &request) |
| Write the next outgoing message and check result. | |
| void | WriteAndCheck (StructsRequest &&request) |
| Write the next outgoing message and check result. | |
| bool | WritesDone () |
| Announce end-of-output to the server. | |
| ugrpc::client::CallContext & | GetContext () |
| Get call context, useful e.g. for accessing metadata. | |
| const ugrpc::client::CallContext & | GetContext () const |
| using grpc_proto_structs::client::ReaderWriter< StructsRequest, StructsResponse >::ProtobufReaderWriter = ugrpc::client::ReaderWriter<ProtobufRequest, ProtobufResponse> |
Definition at line 111 of file stream.hpp.
| using grpc_proto_structs::client::ReaderWriter< StructsRequest, StructsResponse >::ProtobufRequest = proto_structs::traits::CompatibleMessageType<StructsRequest> |
Definition at line 109 of file stream.hpp.
| using grpc_proto_structs::client::ReaderWriter< StructsRequest, StructsResponse >::ProtobufResponse = proto_structs::traits::CompatibleMessageType<StructsResponse> |
Definition at line 108 of file stream.hpp.
|
inlineexplicit |
Definition at line 113 of file stream.hpp.
|
inline |
Get call context, useful e.g. for accessing metadata.
Definition at line 170 of file stream.hpp.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 175 of file stream.hpp.
|
inlinenodiscard |
Await and read the next incoming message.
Definition at line 121 of file stream.hpp.
|
inline |
Return future to read next incoming result.
Definition at line 132 of file stream.hpp.
|
inlinenodiscard |
Write the next outgoing message.
Definition at line 137 of file stream.hpp.
|
inlinenodiscard |
Write the next outgoing message.
Definition at line 144 of file stream.hpp.
|
inline |
Write the next outgoing message and check result.
Definition at line 151 of file stream.hpp.
|
inline |
Write the next outgoing message and check result.
Definition at line 158 of file stream.hpp.
|
inlinenodiscard |
Announce end-of-output to the server.
Definition at line 165 of file stream.hpp.