pub struct StatusMessage {
pub sub_device_id: u16,
pub status_type: StatusType,
pub status_message_id: u16,
pub data_value_1: u16,
pub data_value_2: u16,
}
Fields§
§sub_device_id: u16
§status_type: StatusType
§status_message_id: u16
§data_value_1: u16
§data_value_2: u16
Implementations§
Source§impl StatusMessage
impl StatusMessage
pub fn deserialize(buffer: &[u8]) -> Result<Self, DeserializationError>
pub fn serialize(&self) -> [u8; 9]
Trait Implementations§
Source§impl Clone for StatusMessage
impl Clone for StatusMessage
Source§fn clone(&self) -> StatusMessage
fn clone(&self) -> StatusMessage
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 StatusMessage
impl Debug for StatusMessage
Source§impl Format for StatusMessagewhere
StatusType: Format,
impl Format for StatusMessagewhere
StatusType: Format,
impl Copy for StatusMessage
Auto Trait Implementations§
impl Freeze for StatusMessage
impl RefUnwindSafe for StatusMessage
impl Send for StatusMessage
impl Sync for StatusMessage
impl Unpin for StatusMessage
impl UnwindSafe for StatusMessage
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