pub struct WiegandFormat {
pub parity_even: usize,
pub parity_odd: usize,
pub facility_code: (usize, usize),
pub card_number: (usize, usize),
}Expand description
Structure of a Wiegand format. Wiegand encoding can vary depending on the manufacturer or implementation of access control in a facility.
Fields§
§parity_even: usizePosition of the even parity bit
parity_odd: usizePosition of the odd parity bit
facility_code: (usize, usize)Facility code bit range denoted by: inclusive lower bound and non-inclusive upper bound
card_number: (usize, usize)Card number/identifier bit range denoted by: inclusive lower bound and non-inclusive upper bound
Implementations§
Auto Trait Implementations§
impl Freeze for WiegandFormat
impl RefUnwindSafe for WiegandFormat
impl Send for WiegandFormat
impl Sync for WiegandFormat
impl Unpin for WiegandFormat
impl UnwindSafe for WiegandFormat
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