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