#[non_exhaustive]pub enum ContentControlApdu {
CcPinReply(CcPinReply),
CcPinEvent(CcPinEvent),
}Expand description
Resource-scoped dispatch over the printed-syntax Content Control objects.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl ContentControlApdu
impl ContentControlApdu
Sourcepub fn parse(body: &[u8]) -> Result<Self>
pub fn parse(body: &[u8]) -> Result<Self>
Parse a Content Control APDU, dispatching on the leading apdu_tag.
Only the two extended APDUs whose syntax TS 103 205 prints
(cc_PIN_reply / cc_PIN_event) are recognized; all other Table 6 tags
defer to CI Plus V1.3 and yield Error::UnexpectedApduTag.
Trait Implementations§
Source§impl Clone for ContentControlApdu
impl Clone for ContentControlApdu
Source§fn clone(&self) -> ContentControlApdu
fn clone(&self) -> ContentControlApdu
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ContentControlApdu
impl Debug for ContentControlApdu
impl Eq for ContentControlApdu
Source§impl PartialEq for ContentControlApdu
impl PartialEq for ContentControlApdu
Source§impl Serialize for ContentControlApdu
Available on crate feature serde only.
impl Serialize for ContentControlApdu
Available on crate feature
serde only.Source§impl Serialize for ContentControlApdu
impl Serialize for ContentControlApdu
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl StructuralPartialEq for ContentControlApdu
Auto Trait Implementations§
impl Freeze for ContentControlApdu
impl RefUnwindSafe for ContentControlApdu
impl Send for ContentControlApdu
impl Sync for ContentControlApdu
impl Unpin for ContentControlApdu
impl UnsafeUnpin for ContentControlApdu
impl UnwindSafe for ContentControlApdu
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