#[non_exhaustive]pub enum Command {
Show 26 variants
Poll(Poll),
Id(Id),
Cap(Cap),
LocalStatus(LocalStatus),
InputStatus(InputStatus),
OutputStatus(OutputStatus),
ReaderStatus(ReaderStatus),
Output(OutputControl),
Led(LedControl),
Buzzer(BuzzerControl),
Text(Text),
ComSet(ComSet),
BioRead(BioRead),
BioMatch(BioMatch),
KeySet(KeySet),
Chlng(Chlng),
SCrypt(SCrypt),
AcuRxSize(AcuRxSize),
FileTransfer(FileTransfer),
Mfg(Mfg),
XWrite(XWrite),
Abort(Abort),
PivData(PivData),
GenAuth(GenAuth),
CrAuth(CrAuth),
KeepActive(KeepActive),
}Expand description
Typed dispatch over every command supported by the crate.
Variants whose parser is not yet implemented carry the raw payload bytes so that round-tripping unknown-but-recognized commands still works.
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.
Poll(Poll)
Id(Id)
Cap(Cap)
LocalStatus(LocalStatus)
InputStatus(InputStatus)
OutputStatus(OutputStatus)
ReaderStatus(ReaderStatus)
Output(OutputControl)
Led(LedControl)
Buzzer(BuzzerControl)
Text(Text)
ComSet(ComSet)
BioRead(BioRead)
BioMatch(BioMatch)
KeySet(KeySet)
Chlng(Chlng)
SCrypt(SCrypt)
AcuRxSize(AcuRxSize)
FileTransfer(FileTransfer)
Mfg(Mfg)
XWrite(XWrite)
Abort(Abort)
PivData(PivData)
GenAuth(GenAuth)
CrAuth(CrAuth)
KeepActive(KeepActive)
Implementations§
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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