pub struct EventSupportedReport {
pub notification_type: u8,
pub events: Vec<u16>,
}Expand description
Notification Event Supported Report (0x71 0x02).
Fields§
§notification_type: u8The notification_type field.
events: Vec<u16>The events field.
Implementations§
Source§impl EventSupportedReport
impl EventSupportedReport
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 EventSupportedReport
impl Clone for EventSupportedReport
Source§impl Debug for EventSupportedReport
impl Debug for EventSupportedReport
Source§impl Default for EventSupportedReport
impl Default for EventSupportedReport
impl Eq for EventSupportedReport
Source§impl From<EventSupportedReport> for Command
impl From<EventSupportedReport> for Command
Source§fn from(c: EventSupportedReport) -> Self
fn from(c: EventSupportedReport) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EventSupportedReport
impl PartialEq for EventSupportedReport
impl StructuralPartialEq for EventSupportedReport
Auto Trait Implementations§
impl Freeze for EventSupportedReport
impl RefUnwindSafe for EventSupportedReport
impl Send for EventSupportedReport
impl Sync for EventSupportedReport
impl Unpin for EventSupportedReport
impl UnsafeUnpin for EventSupportedReport
impl UnwindSafe for EventSupportedReport
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