pub(super) enum FixtureCommand {
SpawnFixture {
name: String,
fixture_type_name: String,
start_channel: ChannelIndex,
start_universe: usize,
reply_to: Sender<Result<(), FixtureError>>,
},
MoveFixture {
name: String,
new_channel: ChannelIndex,
new_universe: usize,
reply_to: Sender<Result<(), FixtureError>>,
},
RemoveFixture {
name: String,
reply_to: Sender<Result<(), FixtureError>>,
},
SetProperty {
fixture_name: String,
property: PropertyType,
value: ChannelValue,
reply_to: Sender<Result<(), FixtureError>>,
},
GetType {
fixture_name: String,
reply_to: Sender<Result<String, FixtureError>>,
},
}Expand description
Commands sent asynchronously to the fixture engine thread to manage fixture instances and modify their properties or states.
Variants§
SpawnFixture
Spawns a new fixture instance with a given type, start address, and universe.
Fields
§
fixture_type_name: StringName of the registered FixtureType template to use.
§
start_channel: ChannelIndexStarting DMX-Channel index within the universe.
MoveFixture
Moves an existing fixture to a new DMX channel and/or universe and changes the reserved channels accordingly
Fields
§
new_channel: ChannelIndexNew starting DMX channel index.
RemoveFixture
Removes an existing fixture instance and frees its reserved channels.
Fields
SetProperty
Sets a specific property value on a target fixture.
Fields
§
property: PropertyTypeThe property type to modify (Simple or Color).
§
value: ChannelValueThe new channel value to assign.
GetType
Retrieves the fixture type name for a given fixture.
Auto Trait Implementations§
impl Freeze for FixtureCommand
impl RefUnwindSafe for FixtureCommand
impl Send for FixtureCommand
impl Sync for FixtureCommand
impl Unpin for FixtureCommand
impl UnsafeUnpin for FixtureCommand
impl UnwindSafe for FixtureCommand
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