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