pub enum HostCommand {
Show 16 variants
SetMotor {
deck: DeckId,
running: bool,
},
SetPacketGain {
deck: DeckId,
gain: f32,
ramp_ms: u32,
},
StartPacketPlayback {
deck: DeckId,
offset_seconds: f64,
rate: f32,
platter_handoff: bool,
},
StopPacketPlayback {
deck: DeckId,
platter_handoff: bool,
},
SeekPacketPlayback {
deck: DeckId,
offset_seconds: f64,
},
SetScratchTransport {
deck: DeckId,
hand_contact: bool,
motor_rate: f32,
},
SetScratchTarget {
deck: DeckId,
position_frames: f64,
rate: f32,
impulse: f32,
},
SetScratchPosition {
deck: DeckId,
position_frames: f64,
impulse: f32,
},
StartSurfaceRegion {
region: SurfaceRegion,
duration_seconds: f64,
},
StopSurfaceRegion {
region: SurfaceRegion,
},
StopClipLoop,
SetMixerTrackGain {
track: u8,
gain: f32,
ramp_ms: u32,
},
CaptureScratchStart {
deck: DeckId,
start_seconds: f64,
rotation_degrees: f64,
},
CaptureScratchFinish {
deck: DeckId,
end_seconds: f64,
rotation_degrees: f64,
save_sample: bool,
},
PublishTransportIntent,
RefreshView,
}Variants§
SetMotor
SetPacketGain
StartPacketPlayback
StopPacketPlayback
SeekPacketPlayback
SetScratchTransport
SetScratchTarget
SetScratchPosition
StartSurfaceRegion
StopSurfaceRegion
Fields
§
region: SurfaceRegionStopClipLoop
SetMixerTrackGain
CaptureScratchStart
CaptureScratchFinish
PublishTransportIntent
RefreshView
Trait Implementations§
Source§impl Clone for HostCommand
impl Clone for HostCommand
Source§fn clone(&self) -> HostCommand
fn clone(&self) -> HostCommand
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 HostCommand
impl Debug for HostCommand
Source§impl<'de> Deserialize<'de> for HostCommand
impl<'de> Deserialize<'de> for HostCommand
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 HostCommand
impl PartialEq for HostCommand
Source§fn eq(&self, other: &HostCommand) -> bool
fn eq(&self, other: &HostCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HostCommand
impl Serialize for HostCommand
impl StructuralPartialEq for HostCommand
Auto Trait Implementations§
impl Freeze for HostCommand
impl RefUnwindSafe for HostCommand
impl Send for HostCommand
impl Sync for HostCommand
impl Unpin for HostCommand
impl UnsafeUnpin for HostCommand
impl UnwindSafe for HostCommand
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