FastLED 3.9.15
Loading...
Searching...
No Matches
fl::Rpc::Config< Callable > Struct Template Reference

Detailed Description

template<typename Callable>
struct fl::Rpc::Config< Callable >

Configuration for method registration with optional metadata.

Name and function are required, metadata fields are optional.

Definition at line 183 of file rpc.h.

#include <rpc.h>

+ Collaboration diagram for fl::Rpc::Config< Callable >:

Public Member Functions

 Config (fl::string n, Callable f, fl::RpcMode m=fl::RpcMode::SYNC)
 Constructor requiring name and function (metadata is optional)
 
 Config (fl::string n, Callable f, fl::vector< fl::string > p, fl::RpcMode m=fl::RpcMode::SYNC)
 Constructor with params.
 
 Config (fl::string n, Callable f, fl::vector< fl::string > p, fl::string desc, fl::vector< fl::string > t={}, fl::RpcMode m=fl::RpcMode::SYNC)
 Constructor with all fields.
 

Public Attributes

fl::string description = ""
 Method description (optional)
 
Callable fn
 Function to register (REQUIRED)
 
fl::RpcMode mode = fl::RpcMode::SYNC
 Execution mode (SYNC or ASYNC, default SYNC)
 
fl::string name
 Method name (REQUIRED)
 
fl::vector< fl::stringparams = {}
 Parameter names (optional)
 
fl::vector< fl::stringtags = {}
 Tags for grouping (optional)
 

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