pub struct MatrixConfiguration {
pub width: usize,
pub height: usize,
pub target_fps: f32,
pub serpentine: bool,
pub magnification: f32,
pub brightness: u8,
}
Expand description
Matrix configuration information to be passed to the plugin’s setup function
Fields§
§width: usize
Width of the matrix, in number of LEDs
height: usize
Height of the matrix, in number of LEDs
target_fps: f32
FPS that the program will attempt to drive the LEDs
serpentine: bool
Data line alternates direction between columns or rows In other words, every other row or column is reversed
magnification: f32
Magnification of the simulated matrix
brightness: u8
Brightness of the LEDs, on a scale from 0-255
Trait Implementations§
Source§impl Clone for MatrixConfiguration
impl Clone for MatrixConfiguration
Source§fn clone(&self) -> MatrixConfiguration
fn clone(&self) -> MatrixConfiguration
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for MatrixConfiguration
impl Default for MatrixConfiguration
Source§impl<'de> Deserialize<'de> for MatrixConfiguration
impl<'de> Deserialize<'de> for MatrixConfiguration
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
Auto Trait Implementations§
impl Freeze for MatrixConfiguration
impl RefUnwindSafe for MatrixConfiguration
impl Send for MatrixConfiguration
impl Sync for MatrixConfiguration
impl Unpin for MatrixConfiguration
impl UnwindSafe for MatrixConfiguration
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