#[non_exhaustive]pub enum CopyProtectionApdu<'a> {
CpQuery(CpQuery),
CpReply(CpReply),
CpCommand(CpCommand<'a>),
CpResponse(CpResponse<'a>),
}Expand description
Resource-scoped dispatch over the Copy Protection 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.
CpQuery(CpQuery)
cp_query (9F 80 00).
CpReply(CpReply)
cp_reply (9F 80 01).
CpCommand(CpCommand<'a>)
cp_command (9F 80 02).
CpResponse(CpResponse<'a>)
cp_response (9F 80 03).
Implementations§
Trait Implementations§
Source§impl<'a> Clone for CopyProtectionApdu<'a>
impl<'a> Clone for CopyProtectionApdu<'a>
Source§fn clone(&self) -> CopyProtectionApdu<'a>
fn clone(&self) -> CopyProtectionApdu<'a>
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<'a> Debug for CopyProtectionApdu<'a>
impl<'a> Debug for CopyProtectionApdu<'a>
impl<'a> Eq for CopyProtectionApdu<'a>
Source§impl<'a> PartialEq for CopyProtectionApdu<'a>
impl<'a> PartialEq for CopyProtectionApdu<'a>
Source§impl<'a> Serialize for CopyProtectionApdu<'a>
Available on crate feature serde only.
impl<'a> Serialize for CopyProtectionApdu<'a>
Available on crate feature
serde only.Source§impl Serialize for CopyProtectionApdu<'_>
impl Serialize for CopyProtectionApdu<'_>
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<'a> StructuralPartialEq for CopyProtectionApdu<'a>
Auto Trait Implementations§
impl<'a> Freeze for CopyProtectionApdu<'a>
impl<'a> RefUnwindSafe for CopyProtectionApdu<'a>
impl<'a> Send for CopyProtectionApdu<'a>
impl<'a> Sync for CopyProtectionApdu<'a>
impl<'a> Unpin for CopyProtectionApdu<'a>
impl<'a> UnsafeUnpin for CopyProtectionApdu<'a>
impl<'a> UnwindSafe for CopyProtectionApdu<'a>
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