#[repr(C)]pub struct osdp_event_mfgrep {
pub vendor_code: u32,
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 (3-byte vendor code and 1-byte data). LibOSDP allows for some additional data to be passed in this command using the @a data and @a length fields while using the 1-byte data (as specified in the specification) as @a command. To be fully compliant with the specification, you can set @a length to 0.
Fields§
§vendor_code: u323-bytes IEEE assigned OUI of manufacturer
length: u8Length of manufacturer data in bytes (optional)
data: [u8; 128]Manufacturer data of length bytes (optional)
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 duplicate 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 Freeze for osdp_event_mfgrep
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