emlabcpp
modern opinionated embedded C++ library
emlabcpp::rpc::bind< ID, Signature, CallableSize > Struct Template Reference

#include <rpc.h>

Public Types

using sfunction = static_function< Signature, CallableSize >
 
using sig = signature_of< Signature >
 
using request = typename sig::args_type
 
using reply = std::conditional_t< void_returning, void_return_type, typename sig::return_type >
 

Static Public Attributes

static constexpr auto id = ID
 
static constexpr bool void_returning = std::is_void_v< typename sig::return_type >
 

Member Typedef Documentation

◆ reply

template<auto ID, typename Signature , std::size_t CallableSize = 32>
using emlabcpp::rpc::bind< ID, Signature, CallableSize >::reply = std::conditional_t< void_returning, void_return_type, typename sig::return_type >

◆ request

template<auto ID, typename Signature , std::size_t CallableSize = 32>
using emlabcpp::rpc::bind< ID, Signature, CallableSize >::request = typename sig::args_type

◆ sfunction

template<auto ID, typename Signature , std::size_t CallableSize = 32>
using emlabcpp::rpc::bind< ID, Signature, CallableSize >::sfunction = static_function< Signature, CallableSize >

◆ sig

template<auto ID, typename Signature , std::size_t CallableSize = 32>
using emlabcpp::rpc::bind< ID, Signature, CallableSize >::sig = signature_of< Signature >

Member Data Documentation

◆ id

template<auto ID, typename Signature , std::size_t CallableSize = 32>
constexpr auto emlabcpp::rpc::bind< ID, Signature, CallableSize >::id = ID
staticconstexpr

◆ void_returning

template<auto ID, typename Signature , std::size_t CallableSize = 32>
constexpr bool emlabcpp::rpc::bind< ID, Signature, CallableSize >::void_returning = std::is_void_v< typename sig::return_type >
staticconstexpr

The documentation for this struct was generated from the following file: