pub struct SetDeviceIdStruct {
pub device_id: u8,
}Expand description
Set the device ID.
Fields§
§device_id: u8Device ID (1-254). 0 is unknown and 255 is reserved for broadcast messages.
Trait Implementations§
Source§impl Clone for SetDeviceIdStruct
impl Clone for SetDeviceIdStruct
Source§fn clone(&self) -> SetDeviceIdStruct
fn clone(&self) -> SetDeviceIdStruct
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 SetDeviceIdStruct
impl Debug for SetDeviceIdStruct
Source§impl Default for SetDeviceIdStruct
impl Default for SetDeviceIdStruct
Source§fn default() -> SetDeviceIdStruct
fn default() -> SetDeviceIdStruct
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SetDeviceIdStruct
impl<'de> Deserialize<'de> for SetDeviceIdStruct
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 DeserializePayload for SetDeviceIdStruct
impl DeserializePayload for SetDeviceIdStruct
fn deserialize(payload: &[u8]) -> Self
Source§impl PartialEq for SetDeviceIdStruct
impl PartialEq for SetDeviceIdStruct
Source§impl Serialize for SetDeviceIdStruct
impl Serialize for SetDeviceIdStruct
Source§impl SerializePayload for SetDeviceIdStruct
impl SerializePayload for SetDeviceIdStruct
impl StructuralPartialEq for SetDeviceIdStruct
Auto Trait Implementations§
impl Freeze for SetDeviceIdStruct
impl RefUnwindSafe for SetDeviceIdStruct
impl Send for SetDeviceIdStruct
impl Sync for SetDeviceIdStruct
impl Unpin for SetDeviceIdStruct
impl UnwindSafe for SetDeviceIdStruct
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