pub trait DmxInterface {
// Required method
fn send_universe(
&self,
local_universe_index: u16,
data: &[u8; 512],
) -> Result<(), Error>;
}Expand description
Defines the baseline behavior for any hardware or network DMX output interface.
Note: Currently, the system hardcodes ArtNet output. Future refactoring will allow modular instantiation of multiple interface types via this trait.
Required Methods§
Sourcefn send_universe(
&self,
local_universe_index: u16,
data: &[u8; 512],
) -> Result<(), Error>
fn send_universe( &self, local_universe_index: u16, data: &[u8; 512], ) -> Result<(), Error>
Dispatches a single DMX universe to the connected lighting fixtures.
§Arguments
local_universe_index- The 0-based index of the universe to output on (useful for multi-universe nodes).data- A full 512-byte array representing the computed DMX channel values for this universe.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".