pub struct LightCommandRequest {Show 27 fields
pub key: u32,
pub has_state: bool,
pub state: bool,
pub has_brightness: bool,
pub brightness: f32,
pub has_color_mode: bool,
pub color_mode: i32,
pub has_color_brightness: bool,
pub color_brightness: f32,
pub has_rgb: bool,
pub red: f32,
pub green: f32,
pub blue: f32,
pub has_white: bool,
pub white: f32,
pub has_color_temperature: bool,
pub color_temperature: f32,
pub has_cold_white: bool,
pub cold_white: f32,
pub has_warm_white: bool,
pub warm_white: f32,
pub has_transition_length: bool,
pub transition_length: u32,
pub has_flash_length: bool,
pub flash_length: u32,
pub has_effect: bool,
pub effect: String,
}
Fields§
§key: u32
§has_state: bool
§state: bool
§has_brightness: bool
§brightness: f32
§has_color_mode: bool
§color_mode: i32
§has_color_brightness: bool
§color_brightness: f32
§has_rgb: bool
§red: f32
§green: f32
§blue: f32
§has_white: bool
§white: f32
§has_color_temperature: bool
§color_temperature: f32
§has_cold_white: bool
§cold_white: f32
§has_warm_white: bool
§warm_white: f32
§has_transition_length: bool
§transition_length: u32
§has_flash_length: bool
§flash_length: u32
§has_effect: bool
§effect: String
Trait Implementations§
Source§impl Clone for LightCommandRequest
impl Clone for LightCommandRequest
Source§fn clone(&self) -> LightCommandRequest
fn clone(&self) -> LightCommandRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LightCommandRequest
impl Debug for LightCommandRequest
Source§impl Default for LightCommandRequest
impl Default for LightCommandRequest
Source§impl Message for LightCommandRequest
impl Message for LightCommandRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for LightCommandRequest
impl PartialEq for LightCommandRequest
impl StructuralPartialEq for LightCommandRequest
Auto Trait Implementations§
impl Freeze for LightCommandRequest
impl RefUnwindSafe for LightCommandRequest
impl Send for LightCommandRequest
impl Sync for LightCommandRequest
impl Unpin for LightCommandRequest
impl UnwindSafe for LightCommandRequest
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