pub trait ApduReq<'a>: EncDec<'a, ApduError> {
// Required method
fn header(&self) -> ApduHeader;
}Expand description
Generic APDU request trait
Required Methods§
Sourcefn header(&self) -> ApduHeader
fn header(&self) -> ApduHeader
Fetch the ApduHeader for a given APDU request
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl<'a> ApduReq<'a> for GenericApdu
Available on crate feature
alloc only.ApduReq implementation for GenericApdu, exposes internal header
impl<'a, T: EncDec<'a, ApduError> + ApduStatic> ApduReq<'a> for T
Blanket ApduReq impl for ApduStatic types