UemCommandsCards

Struct UemCommandsCards 

Source
pub struct UemCommandsCards<'a> { /* private fields */ }
Expand description

Structure for commands to interact with cards

Implementations§

Source§

impl<'a> UemCommandsCards<'a>

Source

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()
});
Source

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§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V