pub struct MappingDef {
pub event_pattern: EventPattern,
pub target_node: u32,
pub target_param: String,
pub transform: TransformDef,
pub min: f64,
pub max: f64,
pub enabled: bool,
}Expand description
Describes a mapping from an external event to a node parameter.
Fields§
§event_pattern: EventPattern§target_node: u32§target_param: String§transform: TransformDef§min: f64§max: f64§enabled: boolImplementations§
Source§impl MappingDef
impl MappingDef
pub fn to_mapping(&self) -> Mapping
Trait Implementations§
Source§impl Clone for MappingDef
impl Clone for MappingDef
Source§fn clone(&self) -> MappingDef
fn clone(&self) -> MappingDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MappingDef
impl RefUnwindSafe for MappingDef
impl Send for MappingDef
impl Sync for MappingDef
impl Unpin for MappingDef
impl UnsafeUnpin for MappingDef
impl UnwindSafe for MappingDef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more