pub struct Knob {
pub addr: String,
pub label: String,
pub value: f64,
pub kind: KnobKind,
}Expand description
One knob on a module faceplate.
Fields§
§addr: StringFull trace address (key#site).
label: StringSilkscreen label.
value: f64Current value: normalized [0,1] for continuous, index for enums.
kind: KnobKindControl kind.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Knob
impl<'de> Deserialize<'de> for Knob
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
impl StructuralPartialEq for Knob
Auto Trait Implementations§
impl Freeze for Knob
impl RefUnwindSafe for Knob
impl Send for Knob
impl Sync for Knob
impl Unpin for Knob
impl UnsafeUnpin for Knob
impl UnwindSafe for Knob
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