pub struct ParameterEdit {
pub id: u32,
pub kind: ParameterEditKind,
pub value: Option<f64>,
}Expand description
A single parameter-edit gesture event reported by a plugin’s own editor.
Drained in order via Plugin::take_parameter_edits. This is the richer superset of
Plugin::get_parameter_changes: where that drains only the value changes, this preserves
the begin/change/end ordering so a host can reconstruct each gesture.
Fields§
§id: u32Parameter id the gesture targets.
kind: ParameterEditKindWhich gesture phase this event is.
value: Option<f64>The new normalized value (0.0..=1.0), present only for
ParameterEditKind::ValueChange; None for begin/end brackets.
Trait Implementations§
Source§impl Clone for ParameterEdit
impl Clone for ParameterEdit
Source§fn clone(&self) -> ParameterEdit
fn clone(&self) -> ParameterEdit
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 moreSource§impl Debug for ParameterEdit
impl Debug for ParameterEdit
Source§impl<'de> Deserialize<'de> for ParameterEdit
impl<'de> Deserialize<'de> for ParameterEdit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ParameterEdit
impl PartialEq for ParameterEdit
Source§impl Serialize for ParameterEdit
impl Serialize for ParameterEdit
impl StructuralPartialEq for ParameterEdit
Auto Trait Implementations§
impl Freeze for ParameterEdit
impl RefUnwindSafe for ParameterEdit
impl Send for ParameterEdit
impl Sync for ParameterEdit
impl Unpin for ParameterEdit
impl UnsafeUnpin for ParameterEdit
impl UnwindSafe for ParameterEdit
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