#[non_exhaustive]pub enum MeterParam {
FaderLevel,
MeterLevelL,
MeterLevelR,
MeterPeakL,
MeterPeakR,
MeterStereo,
Other(String),
}Expand description
A per-meter parameter: one of the flat properties the device carries
on each METER node (typically one per fader strip, though the exact
count depends on firmware layout). Provides live L/R meter levels and
peaks plus a stereo-pair flag. FaderLevel is a passthrough of the
strip’s fader position (the same value that appears on the strip’s
FADER node under PHYSICALINTERFACE).
The faderLevel wire name is shared with FADER; decoding
distinguishes by path shape (METER paths never match FADER paths).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
FaderLevel
MeterLevelL
MeterLevelR
MeterPeakL
MeterPeakR
MeterStereo
Other(String)
A property without a typed MeterParam identifier yet. Holds the raw wire name; the value still rides in the carrying event/command.
Implementations§
Source§impl MeterParam
impl MeterParam
Sourcepub fn from_known_name(name: &str) -> Option<MeterParam>
pub fn from_known_name(name: &str) -> Option<MeterParam>
Map a wire property name to its typed MeterParam variant if known, without allocating.
Sourcepub fn is_known_name(name: &str) -> bool
pub fn is_known_name(name: &str) -> bool
Check if a wire property name matches a known MeterParam variant without allocating.
Sourcepub fn from_name(name: &str) -> MeterParam
pub fn from_name(name: &str) -> MeterParam
Map a wire property name to its typed MeterParam variant. Unknown names map to MeterParam::Other, so this is total (never fails).
Sourcepub fn as_str(&self) -> &str
pub fn as_str(&self) -> &str
The wire property name for this parameter (inverse of MeterParam::from_name).
Sourcepub fn is_known(&self) -> bool
pub fn is_known(&self) -> bool
true if this is a typed variant (not MeterParam::Other).