Struct libosdp_sys::osdp_event_cardread
source · #[repr(C)]pub struct osdp_event_cardread {
pub reader_no: c_int,
pub format: osdp_event_cardread_format_e,
pub direction: c_int,
pub length: c_int,
pub data: [u8; 64],
}Expand description
@brief OSDP event cardread
@param reader_no In context of readers attached to current PD, this number
indicated this number. This is not supported by LibOSDP.
@param format Format of the card being read.
see enum osdp_event_cardread_format_e
@param direction Card read direction of PD 0 - Forward; 1 - Backward
@param length Length of card data in bytes or bits depending on format
(see note).
@param data Card data of length bytes or bits depending on format
(see note).
@note When format is set to OSDP_CARD_FMT_RAW_UNSPECIFIED or
OSDP_CARD_FMT_RAW_WIEGAND, the length is expressed in bits. OTOH, when it is
set to OSDP_CARD_FMT_ASCII, the length is in bytes. The number of bytes to
read from the data field must be interpreted accordingly.
Fields§
§reader_no: c_int§format: osdp_event_cardread_format_e§direction: c_int§length: c_int§data: [u8; 64]Trait Implementations§
source§impl Clone for osdp_event_cardread
impl Clone for osdp_event_cardread
source§fn clone(&self) -> osdp_event_cardread
fn clone(&self) -> osdp_event_cardread
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for osdp_event_cardread
impl Debug for osdp_event_cardread
impl Copy for osdp_event_cardread
Auto Trait Implementations§
impl RefUnwindSafe for osdp_event_cardread
impl Send for osdp_event_cardread
impl Sync for osdp_event_cardread
impl Unpin for osdp_event_cardread
impl UnwindSafe for osdp_event_cardread
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