#[non_exhaustive]pub enum PadRecorderParam {
Idx,
State,
Seconds,
MemoryFull,
StateRequest,
Clear,
Other(String),
}Expand description
A per-pad-recorder parameter: the flat properties on each
PADRECORDER node. Read-back: Idx (which pad this recorder targets),
State (current recording state), Seconds (elapsed recording
duration), MemoryFull (out-of-space flag). Command channels:
StateRequest (write to change recording state), Clear (write to
erase the pad’s current recording).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Idx
State
Seconds
MemoryFull
StateRequest
Clear
Other(String)
A property without a typed PadRecorderParam identifier yet. Holds the raw wire name; the value still rides in the carrying event/command.
Implementations§
Source§impl PadRecorderParam
impl PadRecorderParam
Sourcepub fn from_known_name(name: &str) -> Option<PadRecorderParam>
pub fn from_known_name(name: &str) -> Option<PadRecorderParam>
Map a wire property name to its typed PadRecorderParam 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 PadRecorderParam variant without allocating.
Sourcepub fn from_name(name: &str) -> PadRecorderParam
pub fn from_name(name: &str) -> PadRecorderParam
Map a wire property name to its typed PadRecorderParam variant. Unknown names map to PadRecorderParam::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 PadRecorderParam::from_name).
Sourcepub fn is_known(&self) -> bool
pub fn is_known(&self) -> bool
true if this is a typed variant (not PadRecorderParam::Other).