pub struct LED_STRIP_STATE_DATA {
pub colors: [u32; 8],
pub length: u8,
pub index: u8,
pub id: u8,
pub following_flight_mode: u8,
}Available on crate feature
stemstudios only.Expand description
Current LED State. Can be emitted by LED Strip Controller.
ID: 52601
Fields§
§colors: [u32; 8]Array of 32-bit color values (0xWWRRGGBB).
length: u8How many LEDs are being reported in this message.
index: u8Index of first LED being reported.
id: u8Which strip is being reported.
following_flight_mode: u8Are the LED colors changing according to the flight mode (1) or not (0).
Implementations§
Source§impl LED_STRIP_STATE_DATA
impl LED_STRIP_STATE_DATA
pub const ENCODED_LEN: usize = 36usize
pub const DEFAULT: Self
Trait Implementations§
Source§impl Clone for LED_STRIP_STATE_DATA
impl Clone for LED_STRIP_STATE_DATA
Source§fn clone(&self) -> LED_STRIP_STATE_DATA
fn clone(&self) -> LED_STRIP_STATE_DATA
Returns a duplicate 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 Debug for LED_STRIP_STATE_DATA
impl Debug for LED_STRIP_STATE_DATA
Source§impl Default for LED_STRIP_STATE_DATA
impl Default for LED_STRIP_STATE_DATA
Source§impl<'de> Deserialize<'de> for LED_STRIP_STATE_DATA
impl<'de> Deserialize<'de> for LED_STRIP_STATE_DATA
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 MessageData for LED_STRIP_STATE_DATA
impl MessageData for LED_STRIP_STATE_DATA
Source§impl PartialEq for LED_STRIP_STATE_DATA
impl PartialEq for LED_STRIP_STATE_DATA
Source§impl Serialize for LED_STRIP_STATE_DATA
impl Serialize for LED_STRIP_STATE_DATA
impl StructuralPartialEq for LED_STRIP_STATE_DATA
Auto Trait Implementations§
impl Freeze for LED_STRIP_STATE_DATA
impl RefUnwindSafe for LED_STRIP_STATE_DATA
impl Send for LED_STRIP_STATE_DATA
impl Sync for LED_STRIP_STATE_DATA
impl Unpin for LED_STRIP_STATE_DATA
impl UnwindSafe for LED_STRIP_STATE_DATA
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