pub struct DeviceInfo {
pub device_model_id: u16,
pub product_category: u16,
pub software_version: u32,
pub dmx_footprint: u16,
pub dmx_personality: u16,
pub dmx_start_address: DmxStartAddress,
pub sub_device_count: u16,
pub sensor_count: u8,
}
Fields§
§device_model_id: u16
§product_category: u16
§software_version: u32
§dmx_footprint: u16
§dmx_personality: u16
§dmx_start_address: DmxStartAddress
§sub_device_count: u16
§sensor_count: u8
Implementations§
Source§impl DeviceInfo
impl DeviceInfo
pub fn deserialize(buffer: &[u8]) -> Result<Self, DeserializationError>
pub fn serialize(&self) -> DataPack
Trait Implementations§
Source§impl Clone for DeviceInfo
impl Clone for DeviceInfo
Source§fn clone(&self) -> DeviceInfo
fn clone(&self) -> DeviceInfo
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 DeviceInfo
impl Debug for DeviceInfo
Source§impl Format for DeviceInfowhere
DmxStartAddress: Format,
impl Format for DeviceInfowhere
DmxStartAddress: Format,
Auto Trait Implementations§
impl Freeze for DeviceInfo
impl RefUnwindSafe for DeviceInfo
impl Send for DeviceInfo
impl Sync for DeviceInfo
impl Unpin for DeviceInfo
impl UnwindSafe for DeviceInfo
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