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