Struct ledger_proto::ApduHeader
source · pub struct ApduHeader {
pub cla: u8,
pub ins: u8,
pub p1: u8,
pub p2: u8,
}
Expand description
APDU command header
Fields§
§cla: u8
Class ID
ins: u8
Instruction ID
p1: u8
Parameter 1
p2: u8
Parameter 2
Trait Implementations§
source§impl Clone for ApduHeader
impl Clone for ApduHeader
source§fn clone(&self) -> ApduHeader
fn clone(&self) -> ApduHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ApduHeader
impl Debug for ApduHeader
source§impl DecodeOwned for ApduHeader
impl DecodeOwned for ApduHeader
source§impl Default for ApduHeader
impl Default for ApduHeader
source§fn default() -> ApduHeader
fn default() -> ApduHeader
Returns the “default value” for a type. Read more
source§impl Encode for ApduHeader
impl Encode for ApduHeader
source§impl PartialEq<ApduHeader> for ApduHeader
impl PartialEq<ApduHeader> for ApduHeader
source§fn eq(&self, other: &ApduHeader) -> bool
fn eq(&self, other: &ApduHeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ApduHeader
impl StructuralPartialEq for ApduHeader
Auto Trait Implementations§
impl RefUnwindSafe for ApduHeader
impl Send for ApduHeader
impl Sync for ApduHeader
impl Unpin for ApduHeader
impl UnwindSafe for ApduHeader
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
§impl<'a, T> Decode<'a> for Twhere
T: DecodeOwned,
impl<'a, T> Decode<'a> for Twhere T: DecodeOwned,
§type Output = <T as DecodeOwned>::Output
type Output = <T as DecodeOwned>::Output
Output type (allows attaching lifetime bounds where required)
§type Error = <T as DecodeOwned>::Error
type Error = <T as DecodeOwned>::Error
Error type returned on parse error
§impl<'a, T> DecodeExt<'a> for Twhere
T: Decode<'a>,
impl<'a, T> DecodeExt<'a> for Twhere T: Decode<'a>,
§fn decode_iter(buff: &'a [u8]) -> DecodeIter<'a, Self::Output>
fn decode_iter(buff: &'a [u8]) -> DecodeIter<'a, Self::Output>
Helper to iterate over decodable objects in a sized buffer. Read more