pub enum Apci {
GroupValueRead,
GroupValueResponse,
GroupValueWrite,
}Expand description
Only group-value services are modeled; all other APCI codes decode as InvalidFrame
(intentional scope limit).
Variants§
GroupValueRead
Asks the group to state its value. It is the 1 group service that carries no data of its own.
GroupValueResponse
States the group’s value in answer to a read.
GroupValueWrite
States a new value for the group, unprompted.
Implementations§
Source§impl Apci
impl Apci
Sourcepub const fn service_bits(self) -> u8
pub const fn service_bits(self) -> u8
The service bits this variant sets in the APDU’s second octet: the top 2 bits, which is what tells these 3 services apart.
The low 6 bits are left clear here, because that is where the optimized form’s data goes - a payload the caller has already decided the form of is placed over them.
Trait Implementations§
impl Copy for Apci
impl Eq for Apci
impl StructuralPartialEq for Apci
Auto Trait Implementations§
impl Freeze for Apci
impl RefUnwindSafe for Apci
impl Send for Apci
impl Sync for Apci
impl Unpin for Apci
impl UnsafeUnpin for Apci
impl UnwindSafe for Apci
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