pub enum ClientInput {
Show 13 variants
Action {
sequence: u64,
action: UiAction,
},
Keys(BTreeSet<KeyCode>),
SetBeatsPerMinute(f32),
SaveAsset(AnyAsset),
DeleteAsset(AnyAssetId),
Storage(StorageCommand),
SetServerSettings(ServerSettings),
HoverOutputRouting(Option<OutputRouting>),
WatchDevices(bool),
WatchMidi(bool),
MidiLearning(bool),
MidiTest(TestCommand),
WatchSoundTriggers(BTreeSet<Uuid>),
}Expand description
What a user interface sends the engine besides actions.
Variants§
Action
An action from the interface, numbered in the order it was sent.
Keys(BTreeSet<KeyCode>)
The keys held in the interface, for key inputs.
SetBeatsPerMinute(f32)
The tempo set with the BPM slider.
SaveAsset(AnyAsset)
Stores an asset in the collections and the repository.
DeleteAsset(AnyAssetId)
Removes an asset from the collections and the repository.
Storage(StorageCommand)
SetServerSettings(ServerSettings)
HoverOutputRouting(Option<OutputRouting>)
The output routing the pointer is over, whose universe then blinks so
the installation shows which lamps it drives. None when it left.
WatchDevices(bool)
Whether this interface shows a device list, so the engine scans for devices.
WatchMidi(bool)
Whether this interface shows the MIDI monitor, so the engine streams the traffic.
MidiLearning(bool)
Whether this interface waits for MIDI learn input.
MidiTest(TestCommand)
WatchSoundTriggers(BTreeSet<Uuid>)
The sound triggers this interface edits, whose spectra it needs.
Implementations§
Source§impl ClientInput
impl ClientInput
Trait Implementations§
Source§impl Clone for ClientInput
impl Clone for ClientInput
Source§impl Debug for ClientInput
impl Debug for ClientInput
Source§impl<'de> Deserialize<'de> for ClientInput
impl<'de> Deserialize<'de> for ClientInput
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 ClientInput
impl PartialEq for ClientInput
Source§impl Serialize for ClientInput
impl Serialize for ClientInput
impl StructuralPartialEq for ClientInput
Auto Trait Implementations§
impl Freeze for ClientInput
impl RefUnwindSafe for ClientInput
impl Send for ClientInput
impl Sync for ClientInput
impl Unpin for ClientInput
impl UnsafeUnpin for ClientInput
impl UnwindSafe for ClientInput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DebugAny for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more