[−][src]Trait webthing::server::ActionGenerator
Generator for new actions, based on name.
Required methods
pub fn generate(
&self,
thing: Weak<RwLock<Box<dyn Thing>>>,
name: String,
input: Option<&Value>
) -> Option<Box<dyn Action>>
[src]
&self,
thing: Weak<RwLock<Box<dyn Thing>>>,
name: String,
input: Option<&Value>
) -> Option<Box<dyn Action>>
Generate a new action, if possible.
Arguments
thing
- thing associated with this actionname
- name of the requested actioninput
- input for the action