pub struct GenericApdu {
pub header: ApduHeader,
pub data: Vec<u8>,
}Expand description
Generic APDU object (enabled with alloc feature), prefer use of strict APDU types where possible
Fields§
§header: ApduHeaderRequest APDU Header (uses Default for incoming / response APDUs)
data: Vec<u8>APDU data
Trait Implementations§
Source§impl<'a> ApduReq<'a> for GenericApdu
Available on crate feature alloc only.ApduReq implementation for GenericApdu, exposes internal header
impl<'a> ApduReq<'a> for GenericApdu
Available on crate feature
alloc only.ApduReq implementation for GenericApdu, exposes internal header
Source§fn header(&self) -> ApduHeader
fn header(&self) -> ApduHeader
Fetch the ApduHeader for a given APDU request
Source§impl Clone for GenericApdu
impl Clone for GenericApdu
Source§fn clone(&self) -> GenericApdu
fn clone(&self) -> GenericApdu
Returns a duplicate 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 GenericApdu
impl Debug for GenericApdu
Source§impl DecodeOwned for GenericApdu
Available on crate feature alloc only.DecodeOwned implementation for GenericApdu
impl DecodeOwned for GenericApdu
Available on crate feature
alloc only.DecodeOwned implementation for GenericApdu
Source§impl Encode for GenericApdu
Available on crate feature alloc only.Encode implementation for GenericApdu
impl Encode for GenericApdu
Available on crate feature
alloc only.Encode implementation for GenericApdu
Source§impl PartialEq for GenericApdu
impl PartialEq for GenericApdu
impl StructuralPartialEq for GenericApdu
Auto Trait Implementations§
impl Freeze for GenericApdu
impl RefUnwindSafe for GenericApdu
impl Send for GenericApdu
impl Sync for GenericApdu
impl Unpin for GenericApdu
impl UnwindSafe for GenericApdu
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, T> Decode<'a> for Twhere
T: DecodeOwned,
impl<'a, T> Decode<'a> for Twhere
T: DecodeOwned,
Source§type Output = <T as DecodeOwned>::Output
type Output = <T as DecodeOwned>::Output
Output type (allows attaching lifetime bounds where required)
Source§type Error = <T as DecodeOwned>::Error
type Error = <T as DecodeOwned>::Error
Error type returned on parse error
Source§impl<'a, T> DecodeExt<'a> for Twhere
T: Decode<'a>,
impl<'a, T> DecodeExt<'a> for Twhere
T: Decode<'a>,
Source§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