#[repr(C)]pub struct osdp_status_report {
pub type_: osdp_status_report_type,
pub nr_entries: c_int,
pub mask: u32,
}Expand description
@brief Status report structure. Used by OSDP_CMD_STATUS and OSDP_EVENT_STATUS. In case of command, it is used to send a query to the PD while in the case of events, the PD responds back with this structure.
This can is used by the PD to indicate various status change reports. Upto a maximum of 32 statuses can be reported using this API.
Fields§
§type_: osdp_status_report_typeThe kind of event to report see enum osdp_event_status_type_e
nr_entries: c_intNumber of valid bits in status
mask: u32Status bit mask
Trait Implementations§
Source§impl Clone for osdp_status_report
impl Clone for osdp_status_report
Source§fn clone(&self) -> osdp_status_report
fn clone(&self) -> osdp_status_report
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_status_report
impl Debug for osdp_status_report
impl Copy for osdp_status_report
Auto Trait Implementations§
impl Freeze for osdp_status_report
impl RefUnwindSafe for osdp_status_report
impl Send for osdp_status_report
impl Sync for osdp_status_report
impl Unpin for osdp_status_report
impl UnwindSafe for osdp_status_report
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)