pub struct CommandsSupportedReport {
pub command_classes: Vec<u16>,
}Expand description
Security 2 Commands Supported Report (0x9f 0x0e).
Fields§
§command_classes: Vec<u16>The command_classes field.
Implementations§
Source§impl CommandsSupportedReport
impl CommandsSupportedReport
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 CommandsSupportedReport
impl Clone for CommandsSupportedReport
Source§impl Debug for CommandsSupportedReport
impl Debug for CommandsSupportedReport
Source§impl Default for CommandsSupportedReport
impl Default for CommandsSupportedReport
impl Eq for CommandsSupportedReport
Source§impl From<CommandsSupportedReport> for Command
impl From<CommandsSupportedReport> for Command
Source§fn from(c: CommandsSupportedReport) -> Self
fn from(c: CommandsSupportedReport) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CommandsSupportedReport
impl PartialEq for CommandsSupportedReport
impl StructuralPartialEq for CommandsSupportedReport
Auto Trait Implementations§
impl Freeze for CommandsSupportedReport
impl RefUnwindSafe for CommandsSupportedReport
impl Send for CommandsSupportedReport
impl Sync for CommandsSupportedReport
impl Unpin for CommandsSupportedReport
impl UnsafeUnpin for CommandsSupportedReport
impl UnwindSafe for CommandsSupportedReport
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