Struct libosdp_sys::osdp_event_status
source · #[repr(C)]pub struct osdp_event_status {
pub tamper: u8,
pub power: u8,
}Expand description
@brief OSDP Event tamper and power status
The event indicates the local tamper and power status of the PD. When either of these statuses change, PD notifies the CP as a response to POLL command.
@param tamper tamper status: 0 - normal; 1 - tamper @param power power status: 0 - normal; 1 - power failure
Fields§
§tamper: u8§power: u8Trait Implementations§
source§impl Clone for osdp_event_status
impl Clone for osdp_event_status
source§fn clone(&self) -> osdp_event_status
fn clone(&self) -> osdp_event_status
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_status
impl Debug for osdp_event_status
impl Copy for osdp_event_status
Auto Trait Implementations§
impl RefUnwindSafe for osdp_event_status
impl Send for osdp_event_status
impl Sync for osdp_event_status
impl Unpin for osdp_event_status
impl UnwindSafe for osdp_event_status
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