pub struct TransferEnd {
pub key_verified: bool,
pub key_request_complete: bool,
}Expand description
Security 2 Transfer End (0x9f 0x0c).
Fields§
§key_verified: boolThe key_verified field (bits 1..2).
key_request_complete: boolThe key_request_complete field (bits 0..1).
Implementations§
Source§impl TransferEnd
impl TransferEnd
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 TransferEnd
impl Clone for TransferEnd
Source§impl Debug for TransferEnd
impl Debug for TransferEnd
Source§impl Default for TransferEnd
impl Default for TransferEnd
impl Eq for TransferEnd
Source§impl From<TransferEnd> for Command
impl From<TransferEnd> for Command
Source§fn from(c: TransferEnd) -> Self
fn from(c: TransferEnd) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TransferEnd
impl PartialEq for TransferEnd
impl StructuralPartialEq for TransferEnd
Auto Trait Implementations§
impl Freeze for TransferEnd
impl RefUnwindSafe for TransferEnd
impl Send for TransferEnd
impl Sync for TransferEnd
impl Unpin for TransferEnd
impl UnsafeUnpin for TransferEnd
impl UnwindSafe for TransferEnd
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