asio-grpc v1.4.0
Asynchronous gRPC with Asio/unified executors
|
Public namespace. More...
Namespaces | |
namespace | pmr |
Public namespace. | |
Classes | |
class | AllocatorBinder |
Helper class that associates an allocator to an object. More... | |
class | BasicGrpcExecutor |
GrpcContext's executor. More... | |
struct | DefaultPollContextTraits |
(experimental) Default PollContext traits More... | |
class | GrpcContext |
Execution context based on grpc::CompletionQueue More... | |
class | PollContext |
(experimental) Helper class to run a GrpcContext in a different execution context More... | |
class | RepeatedlyRequestContext |
Context passed to the request handler of repeatedly_request. More... | |
Typedefs | |
using | DefaultCompletionToken = detail::DefaultCompletionToken |
Default completion token for all asynchronous functions. More... | |
using | GrpcExecutor = agrpc::BasicGrpcExecutor<> |
Default GrpcExecutor. More... | |
template<class T > | |
using | GrpcAwaitable = asio::awaitable< T, agrpc::GrpcExecutor > |
asio::awaitable specialized on agrpc::GrpcExecutor | |
using | GrpcUseAwaitable = asio::use_awaitable_t< agrpc::GrpcExecutor > |
asio::use_awaitable_t specialized on agrpc::GrpcExecutor | |
Functions | |
template<class Allocator , class Target > | |
auto | bind_allocator (const Allocator &allocator, Target &&target) |
Helper function to create an agrpc::AllocatorBinder. More... | |
Variables | |
constexpr detail::GetCompletionQueueFn | get_completion_queue {} |
Get grpc::CompletionQueue* from an object. More... | |
constexpr detail::GrpcInitiateFn | grpc_initiate {} |
Initiate a gRPC tag-based function. More... | |
constexpr detail::RepeatedlyRequestFn | repeatedly_request {} |
Register a request handler for a RPC. More... | |
constexpr detail::RequestFn | request {} |
Start a new RPC. More... | |
constexpr detail::ReadFn | read {} |
Read from a streaming RPC. More... | |
constexpr detail::WriteFn | write {} |
Write to a streaming RPC. More... | |
constexpr detail::WritesDoneFn | writes_done {} |
Signal WritesDone to a streaming RPC. More... | |
constexpr detail::FinishFn | finish {} |
Finish a RPC. More... | |
constexpr detail::WriteLastFn | write_last {} |
Coalesce write and send trailing metadata of a streaming RPC. More... | |
constexpr detail::WriteAndFinishFn | write_and_finish {} |
Coalesce write and finish of a streaming RPC. More... | |
constexpr detail::FinishWithErrorFn | finish_with_error {} |
Finish a RPC with an error. More... | |
constexpr detail::SendInitialMetadataFn | send_initial_metadata {} |
Send initial metadata for a RPC. More... | |
constexpr detail::ReadInitialMetadataFn | read_initial_metadata {} |
Read initial metadata for a RPC. More... | |
constexpr agrpc::GrpcUseAwaitable | GRPC_USE_AWAITABLE {} |
asio::use_awaitable specialized on agrpc::GrpcExecutor | |
constexpr detail::UseSenderFn | use_sender {} |
Create sender completion token. More... | |
constexpr detail::WaitFn | wait {} |
Wait for a timer. More... | |
Public namespace.
using agrpc::DefaultCompletionToken = typedef detail::DefaultCompletionToken |
Default completion token for all asynchronous functions.
Only available for Boost.Asio and standalone Asio: asio::use_awaitable
using agrpc::GrpcExecutor = typedef agrpc::BasicGrpcExecutor<> |
Default GrpcExecutor.
The default GrpcExecutor does not track outstanding work, has the relationship.fork and blocking.never properties and uses the default allocator (std::allocator<void>
).
auto agrpc::bind_allocator | ( | const Allocator & | allocator, |
Target && | target | ||
) |
Helper function to create an agrpc::AllocatorBinder.
|
inlineconstexpr |
Finish a RPC.
|
inlineconstexpr |
Finish a RPC with an error.
|
inlineconstexpr |
Get grpc::CompletionQueue*
from an object.
|
inlineconstexpr |
Initiate a gRPC tag-based function.
|
inlineconstexpr |
Read from a streaming RPC.
Client and server-side function to read from streaming RPCs.
|
inlineconstexpr |
Read initial metadata for a RPC.
|
inlineconstexpr |
Register a request handler for a RPC.
|
inlineconstexpr |
Start a new RPC.
|
inlineconstexpr |
Send initial metadata for a RPC.
|
inlineconstexpr |
Create sender completion token.
|
inlineconstexpr |
Wait for a timer.
|
inlineconstexpr |
Write to a streaming RPC.
|
inlineconstexpr |
Coalesce write and finish of a streaming RPC.
Server-side function to coalesce write and finish of streaming RPCs.
|
inlineconstexpr |
Coalesce write and send trailing metadata of a streaming RPC.
Client and server-side function to coalesce write and send trailing metadata of streaming RPCs.
|
inlineconstexpr |
Signal WritesDone to a streaming RPC.
Client-side function to signal WritesDone to streaming RPCs.