cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
|
Class of future object to wait for asynchronous RPCs. More...
#include <msgpack_rpc/clients/call_future.h>
Public Member Functions | |
CallFuture (std::shared_ptr< impl::ICallFutureImpl > impl) | |
Constructor. | |
Result | get_result () |
Get the result of RPC. | |
Result | get_result_within (std::chrono::nanoseconds timeout) |
Get the result of RPC within a timeout. |
Static Private Member Functions | |
static Result | get_from_call_result (const messages::CallResult &call_result) |
Get the result from CallResult object. |
Private Attributes | |
std::shared_ptr< impl::ICallFutureImpl > | impl_ |
Object of the internal implementation. |
Class of future object to wait for asynchronous RPCs.
Result | Type of the result. |
Objects of this class are created by Client::async_call function.
Definition at line 40 of file call_future.h.
|
inlineexplicit |
Constructor.
[in] | impl | Object of the internal implementation. |
Definition at line 50 of file call_future.h.
|
inlinestaticnodiscardprivate |
Get the result from CallResult object.
[in] | call_result | CallResult object. |
Definition at line 92 of file call_future.h.
|
inlinenodiscard |
Get the result of RPC.
ServerException | Errors in the server. |
MsgpackRPCException | Other errors. |
Definition at line 63 of file call_future.h.
|
inlinenodiscard |
Get the result of RPC within a timeout.
[in] | timeout | Timeout. |
ServerException | Errors in the server. |
MsgpackRPCException | Other errors including timeout. |
Definition at line 80 of file call_future.h.
|
private |
Object of the internal implementation.
Definition at line 101 of file call_future.h.