Efficient, low-code-size RPC system for embedded devices.
|
|
constexpr | pw::rpc::DynamicCallPtr< CallType, UniquePtr >::DynamicCallPtr ()=default |
| | Creates an empty DynamicCallPtr.
|
| |
|
constexpr | pw::rpc::DynamicCallPtr< CallType, UniquePtr >::DynamicCallPtr (std::nullptr_t) |
| |
|
| pw::rpc::DynamicCallPtr< CallType, UniquePtr >::DynamicCallPtr (UniquePtr ptr) |
| | Takes ownership of a heap-allocated call object.
|
| |
|
| pw::rpc::DynamicCallPtr< CallType, UniquePtr >::DynamicCallPtr (const DynamicCallPtr &)=delete |
| |
|
DynamicCallPtr & | pw::rpc::DynamicCallPtr< CallType, UniquePtr >::operator= (const DynamicCallPtr &)=delete |
| |
|
| pw::rpc::DynamicCallPtr< CallType, UniquePtr >::DynamicCallPtr (DynamicCallPtr &&other) noexcept |
| |
| DynamicCallPtr & | pw::rpc::DynamicCallPtr< CallType, UniquePtr >::operator= (DynamicCallPtr &&other) noexcept |
| |
|
DynamicCallPtr & | pw::rpc::DynamicCallPtr< CallType, UniquePtr >::operator= (std::nullptr_t) noexcept |
| |
| void | pw::rpc::DynamicCallPtr< CallType, UniquePtr >::reset () noexcept |
| |
|
CallType * | pw::rpc::DynamicCallPtr< CallType, UniquePtr >::get () const noexcept |
| |
|
CallType & | pw::rpc::DynamicCallPtr< CallType, UniquePtr >::operator* () const noexcept |
| |
|
CallType * | pw::rpc::DynamicCallPtr< CallType, UniquePtr >::operator-> () const noexcept |
| |
|
| pw::rpc::DynamicCallPtr< CallType, UniquePtr >::operator bool () const noexcept |
| |
| template<typename Ptr , typename = std::enable_if_t<!std::is_pointer_v<Ptr>>> |
| | pw::rpc::DynamicCallPtr (Ptr) -> DynamicCallPtr< typename std::pointer_traits< Ptr >::element_type, Ptr > |
| |
| template<typename CallType > |
| DynamicCallPtr< CallType > | pw::rpc::MakeDynamicCall (CallType call) |
| |
|
template<auto kMethod> |
| constexpr const auto & | pw::rpc::MethodSerde () |
| |
|
template<auto kMethod> |
| constexpr MethodId | pw::rpc::GetMethodId () |
| |
|
template<auto kMethod> |
| constexpr ServiceId | pw::rpc::GetServiceIdForMethod () |
| |
|
constexpr bool | pw::rpc::HasServerStream (MethodType type) |
| |
|
constexpr bool | pw::rpc::HasClientStream (MethodType type) |
| |
template<typename CallType , typename
UniquePtr = decltype(PW_RPC_MAKE_UNIQUE_PTR( CallType, std::declval<CallType>()))>
Closes and releases the owned call, if any. Server calls are completed with an OK status and client calls are abandoned, as when a call object is destroyed. A pending on_error from an earlier abort or cancellation is discarded and not invoked.
If none of the call's callbacks are running, the call object and its callbacks are destroyed before this returns. Otherwise, they are destroyed when the last running callback finishes.