pub struct DeviceConfig {
pub write_uuid: Uuid,
pub read_uuid: Uuid,
pub turn_on_cmd: [u8; 9],
pub turn_off_cmd: [u8; 9],
pub min_color_temp_k: u32,
pub max_color_temp_k: u32,
pub command_delay: u64,
}
Expand description
Configuration for different device types
Fields§
§write_uuid: Uuid
UUID for write characteristic
read_uuid: Uuid
UUID for read characteristic
turn_on_cmd: [u8; 9]
Command to turn the device on
turn_off_cmd: [u8; 9]
Command to turn the device off
min_color_temp_k: u32
Minimum supported color temperature in Kelvin
max_color_temp_k: u32
Maximum supported color temperature in Kelvin
command_delay: u64
Command processing time in milliseconds
Trait Implementations§
Source§impl Clone for DeviceConfig
impl Clone for DeviceConfig
Source§fn clone(&self) -> DeviceConfig
fn clone(&self) -> DeviceConfig
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 moreAuto Trait Implementations§
impl Freeze for DeviceConfig
impl RefUnwindSafe for DeviceConfig
impl Send for DeviceConfig
impl Sync for DeviceConfig
impl Unpin for DeviceConfig
impl UnwindSafe for DeviceConfig
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