pub struct UemCommandsCards<'a> { /* private fields */ }Expand description
Structure for commands to interact with cards
Implementations§
Source§impl<'a> UemCommandsCards<'a>
impl<'a> UemCommandsCards<'a>
Sourcepub fn activate_a(
&mut self,
parameters: &UemActivateParameters,
) -> UemResultCardA
pub fn activate_a( &mut self, parameters: &UemActivateParameters, ) -> UemResultCardA
Activation of type ISO14443A card
§Arguments
parameters- A reference to a set of parameters to tweak activation,
§Returns
Ok(()) on success, otherwise returns an error.
§Example
ⓘ
let card = uem_reader.commands().cards().activate_a(&UemActivateParameters{
// switch_to_tcl: true, // Can be used to set T=CL protocol after activation
..Default::default()
});Sourcepub fn activate_b(
&mut self,
parameters: &UemActivateParameters,
) -> UemResultCardB
pub fn activate_b( &mut self, parameters: &UemActivateParameters, ) -> UemResultCardB
Activation of type ISO14443B card
§Arguments
parameters- A set of parameters to tweak activation,
§Returns
Ok(()) on success, otherwise returns an error.
§Example
ⓘ
let card = uem_reader.commands().cards().activate_b(&UemActivateParameters{
// switch_to_tcl: true, // Can be used to set T=CL protocol after activation
..Default::default()
});
if card.is_err() {
uem_reader.close();
return;
}
let card = card.unwrap();Trait Implementations§
Source§impl<'a> UemCommandsCardsMifareTrait for UemCommandsCards<'a>
impl<'a> UemCommandsCardsMifareTrait for UemCommandsCards<'a>
fn mifare(&mut self) -> UemCommandsCardsMifare<'_>
Auto Trait Implementations§
impl<'a> Freeze for UemCommandsCards<'a>
impl<'a> RefUnwindSafe for UemCommandsCards<'a>
impl<'a> Send for UemCommandsCards<'a>
impl<'a> Sync for UemCommandsCards<'a>
impl<'a> Unpin for UemCommandsCards<'a>
impl<'a> UnwindSafe for UemCommandsCards<'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