Struct libosdp_sys::osdp_event_mfgrep
source · #[repr(C)]pub struct osdp_event_mfgrep {
pub vendor_code: u32,
pub command: u8,
pub length: u8,
pub data: [u8; 128],
}Expand description
@brief OSDP Event Manufacturer Specific Command
Note: OSDP spec v2.2 makes this structure fixed at 4 bytes. LibOSDP allows for some additional data to be passed in this command using the data and length fields. To be fully compliant with the specification, set the length field to 0.
@param vendor_code 3-bytes IEEE assigned OUI of manufacturer
@param command 1-byte reply code
@param length Length of manufacturer data in bytes (optional)
@param data manufacturer data of length bytes (optional)
Fields§
§vendor_code: u32§command: u8§length: u8§data: [u8; 128]Trait Implementations§
source§impl Clone for osdp_event_mfgrep
impl Clone for osdp_event_mfgrep
source§fn clone(&self) -> osdp_event_mfgrep
fn clone(&self) -> osdp_event_mfgrep
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_mfgrep
impl Debug for osdp_event_mfgrep
impl Copy for osdp_event_mfgrep
Auto Trait Implementations§
impl RefUnwindSafe for osdp_event_mfgrep
impl Send for osdp_event_mfgrep
impl Sync for osdp_event_mfgrep
impl Unpin for osdp_event_mfgrep
impl UnwindSafe for osdp_event_mfgrep
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