Trait livemod::LiveMod [−][src]
pub trait LiveMod: Send {
fn repr_default(&self, target: ActionTarget<'_, '_>) -> Namespaced<Repr>;
fn get_self(&self, target: ActionTarget<'_, '_>) -> Parameter<Value>;
fn accept(
&mut self,
target: ActionTarget<'_, '_>,
value: Parameter<Value>
) -> bool;
}
Expand description
Data which can be modified by the LiveMod API
Required methods
fn repr_default(&self, target: ActionTarget<'_, '_>) -> Namespaced<Repr>
fn repr_default(&self, target: ActionTarget<'_, '_>) -> Namespaced<Repr>
The default representation of the data.
The representation of the data may be dependent on the current value of self
.
fn get_self(&self, target: ActionTarget<'_, '_>) -> Parameter<Value>
fn get_self(&self, target: ActionTarget<'_, '_>) -> Parameter<Value>
Get the current value of self
in the LiveMod message format.