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
@note When @a 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 @a data field must be interpreted accordingly.
Fields§
§reader_no: c_intReader number. 0 = First Reader, 1 = Second Reader, etc.
format: osdp_event_cardread_format_eFormat of the card being read.
direction: c_intDirection of data in @a data array.
- 0 - Forward
- 1 - Backward
length: c_intLength of card data in bytes or bits depending on @a format
data: [u8; 64]Card data of @a length bytes or bits bits depending on @a format
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 Freeze for osdp_event_cardread
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