pub struct State<T> {
pub hysteresis: HysteresisState<T>,
pub ema_filter: Option<EmaFilter>,
pub last_output: T,
pub grabbed: bool,
pub virtual_value: T,
pub physical_position: T,
pub last_physical: T,
pub passthrough_initialized: bool,
}Fields§
§hysteresis: HysteresisState<T>Hysteresis processing state
ema_filter: Option<EmaFilter>EMA filter state
last_output: TLast output value (for dead zones)
grabbed: boolGrab mode: whether pot has been grabbed
virtual_value: TGrab mode: virtual parameter value (locked when not grabbed)
physical_position: TGrab mode: physical position after processing (before snap zones)
last_physical: TGrab mode: last physical position (for PassThrough crossing detection)
passthrough_initialized: boolGrab mode: whether we’ve initialized last_physical (for PassThrough first read)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for State<T>where
T: Freeze,
impl<T> RefUnwindSafe for State<T>where
T: RefUnwindSafe,
impl<T> Send for State<T>where
T: Send,
impl<T> Sync for State<T>where
T: Sync,
impl<T> Unpin for State<T>where
T: Unpin,
impl<T> UnsafeUnpin for State<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for State<T>where
T: UnwindSafe,
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