Struct libosdp_sys::osdp_status_report
source · #[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 PR 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.
@param type The kind of event to report see enum osdp_event_status_type_e
@param nr_entries Number of valid bits in status
@param status Status bit mask
Fields§
§type_: osdp_status_report_type§nr_entries: c_int§mask: u32Trait 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 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