pub struct EventSupportedGet {
pub notification_type: u8,
}Expand description
Notification Event Supported Get (0x71 0x01).
Fields§
§notification_type: u8The notification_type field.
Implementations§
Source§impl EventSupportedGet
impl EventSupportedGet
Sourcepub fn parse(p: &[u8]) -> Result<Self, ParseError>
pub fn parse(p: &[u8]) -> Result<Self, ParseError>
Parses the payload after the command id. Extra trailing bytes (newer versions) are ignored.
Sourcepub fn encode_payload(&self, w: &mut Vec<u8>)
pub fn encode_payload(&self, w: &mut Vec<u8>)
Appends the payload after the command id.
Trait Implementations§
Source§impl Clone for EventSupportedGet
impl Clone for EventSupportedGet
Source§impl Debug for EventSupportedGet
impl Debug for EventSupportedGet
Source§impl Default for EventSupportedGet
impl Default for EventSupportedGet
impl Eq for EventSupportedGet
Source§impl From<EventSupportedGet> for Command
impl From<EventSupportedGet> for Command
Source§fn from(c: EventSupportedGet) -> Self
fn from(c: EventSupportedGet) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EventSupportedGet
impl PartialEq for EventSupportedGet
impl StructuralPartialEq for EventSupportedGet
Auto Trait Implementations§
impl Freeze for EventSupportedGet
impl RefUnwindSafe for EventSupportedGet
impl Send for EventSupportedGet
impl Sync for EventSupportedGet
impl Unpin for EventSupportedGet
impl UnsafeUnpin for EventSupportedGet
impl UnwindSafe for EventSupportedGet
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