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