Main docs: Client synchronous call wrappers
Classes | |
class | pw::rpc::SynchronousCallResult< Response > |
Functions | |
template<auto kRpcMethod, typename Response = typename internal::MethodInfo<kRpcMethod>::Response> | |
SynchronousCallResult< Response > | pw::rpc::SynchronousCall (Client &client, uint32_t channel_id, const typename internal::MethodInfo< kRpcMethod >::Request &request) |
template<auto kRpcMethod, typename GeneratedClient > | |
SynchronousCallResult< typename internal::MethodInfo< kRpcMethod >::Response > | pw::rpc::SynchronousCall (const GeneratedClient &client, const typename internal::MethodInfo< kRpcMethod >::Request &request) |
template<auto kRpcMethod> | |
Status | pw::rpc::SynchronousCall (Client &client, uint32_t channel_id, ConstByteSpan request, Function< void(ConstByteSpan, Status)> &&on_completed) |
template<auto kRpcMethod> | |
Status | pw::rpc::SynchronousCall (const typename internal::MethodInfo< kRpcMethod >::GeneratedClient &client, ConstByteSpan request, Function< void(ConstByteSpan, Status)> &&on_completed) |
template<auto kRpcMethod> | |
SynchronousCallResult< typename internal::MethodInfo< kRpcMethod >::Response > | pw::rpc::SynchronousCallFor (Client &client, uint32_t channel_id, const typename internal::MethodInfo< kRpcMethod >::Request &request, chrono::SystemClock::duration timeout) |
template<auto kRpcMethod, typename GeneratedClient > | |
SynchronousCallResult< typename internal::MethodInfo< kRpcMethod >::Response > | pw::rpc::SynchronousCallFor (const GeneratedClient &client, const typename internal::MethodInfo< kRpcMethod >::Request &request, chrono::SystemClock::duration timeout) |
template<auto kRpcMethod> | |
Status | pw::rpc::SynchronousCallFor (Client &client, uint32_t channel_id, ConstByteSpan request, chrono::SystemClock::duration timeout, Function< void(ConstByteSpan, Status)> &&on_completed) |
template<auto kRpcMethod> | |
Status | pw::rpc::SynchronousCallFor (const typename internal::MethodInfo< kRpcMethod >::GeneratedClient &client, ConstByteSpan request, chrono::SystemClock::duration timeout, Function< void(ConstByteSpan, Status)> &&on_completed) |
template<auto kRpcMethod> | |
SynchronousCallResult< typename internal::MethodInfo< kRpcMethod >::Response > | pw::rpc::SynchronousCallUntil (Client &client, uint32_t channel_id, const typename internal::MethodInfo< kRpcMethod >::Request &request, chrono::SystemClock::time_point deadline) |
template<auto kRpcMethod> | |
SynchronousCallResult< typename internal::MethodInfo< kRpcMethod >::Response > | pw::rpc::SynchronousCallUntil (const typename internal::MethodInfo< kRpcMethod >::GeneratedClient &client, const typename internal::MethodInfo< kRpcMethod >::Request &request, chrono::SystemClock::time_point deadline) |
template<auto kRpcMethod> | |
Status | pw::rpc::SynchronousCallUntil (Client &client, uint32_t channel_id, ConstByteSpan request, chrono::SystemClock::time_point deadline, Function< void(ConstByteSpan, Status)> &&on_completed) |
template<auto kRpcMethod> | |
Status | pw::rpc::SynchronousCallUntil (const typename internal::MethodInfo< kRpcMethod >::GeneratedClient &client, ConstByteSpan request, chrono::SystemClock::time_point deadline, Function< void(ConstByteSpan, Status)> &&on_completed) |
SynchronousCallResult< Response > pw::rpc::SynchronousCall | ( | Client & | client, |
uint32_t | channel_id, | ||
const typename internal::MethodInfo< kRpcMethod >::Request & | request | ||
) |
Invokes a unary RPC synchronously using Nanopb or pwpb. Blocks indefinitely until a response is received.
client | The pw::rpc::Client to use for the call |
channel_id | The ID of the RPC channel to make the call on |
request | The proto struct to send as the request |
Status pw::rpc::SynchronousCall | ( | Client & | client, |
uint32_t | channel_id, | ||
ConstByteSpan | request, | ||
Function< void(ConstByteSpan, Status)> && | on_completed | ||
) |
Invokes a unary RPC synchronously using the raw API. Blocks until a response is received.
SynchronousCallResult< typename internal::MethodInfo< kRpcMethod >::Response > pw::rpc::SynchronousCall | ( | const GeneratedClient & | client, |
const typename internal::MethodInfo< kRpcMethod >::Request & | request | ||
) |
Invokes a unary RPC synchronously using Nanopb or pwpb. Blocks indefinitely until a response is received.
client | The generated service client to use for the call |
request | The proto struct to send as the request |
Status pw::rpc::SynchronousCall | ( | const typename internal::MethodInfo< kRpcMethod >::GeneratedClient & | client, |
ConstByteSpan | request, | ||
Function< void(ConstByteSpan, Status)> && | on_completed | ||
) |
Invokes a unary RPC synchronously using the raw API. Blocks until a response is received.
SynchronousCallResult< typename internal::MethodInfo< kRpcMethod >::Response > pw::rpc::SynchronousCallFor | ( | Client & | client, |
uint32_t | channel_id, | ||
const typename internal::MethodInfo< kRpcMethod >::Request & | request, | ||
chrono::SystemClock::duration | timeout | ||
) |
Invokes a unary RPC synchronously using Nanopb or pwpb. Blocks until a response is received or the provided timeout passes.
client | The pw::rpc::Client to use for the call |
channel_id | The ID of the RPC channel to make the call on |
request | The proto struct to send as the request |
timeout | Duration to block for before returning with Timeout |
Status pw::rpc::SynchronousCallFor | ( | Client & | client, |
uint32_t | channel_id, | ||
ConstByteSpan | request, | ||
chrono::SystemClock::duration | timeout, | ||
Function< void(ConstByteSpan, Status)> && | on_completed | ||
) |
Invokes a unary RPC synchronously using the raw API. Blocks until a response is received or the provided timeout passes.
SynchronousCallResult< typename internal::MethodInfo< kRpcMethod >::Response > pw::rpc::SynchronousCallFor | ( | const GeneratedClient & | client, |
const typename internal::MethodInfo< kRpcMethod >::Request & | request, | ||
chrono::SystemClock::duration | timeout | ||
) |
Invokes a unary RPC synchronously using Nanopb or pwpb. Blocks until a response is received or the provided timeout passes.
client | The generated service client to use for the call |
request | The proto struct to send as the request |
timeout | Duration to block for before returning with Timeout |
Status pw::rpc::SynchronousCallFor | ( | const typename internal::MethodInfo< kRpcMethod >::GeneratedClient & | client, |
ConstByteSpan | request, | ||
chrono::SystemClock::duration | timeout, | ||
Function< void(ConstByteSpan, Status)> && | on_completed | ||
) |
Invokes a unary RPC synchronously using the raw API. Blocks until a response is received or the provided timeout passes.
SynchronousCallResult< typename internal::MethodInfo< kRpcMethod >::Response > pw::rpc::SynchronousCallUntil | ( | Client & | client, |
uint32_t | channel_id, | ||
const typename internal::MethodInfo< kRpcMethod >::Request & | request, | ||
chrono::SystemClock::time_point | deadline | ||
) |
Invokes a unary RPC synchronously using Nanopb or pwpb. Blocks until a response is received or the provided deadline arrives.
client | The pw::rpc::Client to use for the call |
channel_id | The ID of the RPC channel to make the call on |
request | The proto struct to send as the request |
deadline | Timepoint to block until before returning with Timeout |
Status pw::rpc::SynchronousCallUntil | ( | Client & | client, |
uint32_t | channel_id, | ||
ConstByteSpan | request, | ||
chrono::SystemClock::time_point | deadline, | ||
Function< void(ConstByteSpan, Status)> && | on_completed | ||
) |
Invokes a unary RPC synchronously using the raw API. Blocks until a response is received or the provided deadline arrives.
SynchronousCallResult< typename internal::MethodInfo< kRpcMethod >::Response > pw::rpc::SynchronousCallUntil | ( | const typename internal::MethodInfo< kRpcMethod >::GeneratedClient & | client, |
const typename internal::MethodInfo< kRpcMethod >::Request & | request, | ||
chrono::SystemClock::time_point | deadline | ||
) |
Invokes a unary RPC synchronously using Nanopb or pwpb. Blocks until a response is received or the provided deadline arrives.
client | The generated service client to use for the call |
request | The proto struct to send as the request |
deadline | Timepoint to block until before returning with Timeout |
Status pw::rpc::SynchronousCallUntil | ( | const typename internal::MethodInfo< kRpcMethod >::GeneratedClient & | client, |
ConstByteSpan | request, | ||
chrono::SystemClock::time_point | deadline, | ||
Function< void(ConstByteSpan, Status)> && | on_completed | ||
) |
Invokes a unary RPC synchronously using the raw API. Blocks until a response is received or the provided deadline arrives.