pub struct CapabilityReport {
pub dynamic: bool,
pub end_point: u8,
pub generic: u8,
pub specific: u8,
pub command_classes: Vec<u16>,
}Expand description
Multi Channel Capability Report (0x60 0x0a).
Fields§
§dynamic: boolThe dynamic field (bits 7..8).
end_point: u8The end_point field (bits 0..7).
generic: u8The generic field.
specific: u8The specific field.
command_classes: Vec<u16>The command_classes field.
Implementations§
Source§impl CapabilityReport
impl CapabilityReport
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 CapabilityReport
impl Clone for CapabilityReport
Source§impl Debug for CapabilityReport
impl Debug for CapabilityReport
Source§impl Default for CapabilityReport
impl Default for CapabilityReport
impl Eq for CapabilityReport
Source§impl From<CapabilityReport> for Command
impl From<CapabilityReport> for Command
Source§fn from(c: CapabilityReport) -> Self
fn from(c: CapabilityReport) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CapabilityReport
impl PartialEq for CapabilityReport
impl StructuralPartialEq for CapabilityReport
Auto Trait Implementations§
impl Freeze for CapabilityReport
impl RefUnwindSafe for CapabilityReport
impl Send for CapabilityReport
impl Sync for CapabilityReport
impl Unpin for CapabilityReport
impl UnsafeUnpin for CapabilityReport
impl UnwindSafe for CapabilityReport
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