pub struct OsdpCommandBuzzer {
pub reader: u8,
pub control_code: u8,
pub on_count: u8,
pub off_count: u8,
pub rep_count: u8,
}Expand description
Command to control the behavior of a buzzer in the PD
Fields§
§reader: u8Reader (another device connected to this PD) for which this command is issued for.
0 - self 1 - fist connected reader 2 - second connected reader ….
control_code: u8Control code instructs the operation to perform:
0 - no tone 1 - off 2 - default tone 3+ - TBD
on_count: u8The ON duration of the flash, in units of 100 ms
off_count: u8The OFF duration of the flash, in units of 100 ms
rep_count: u8The number of times to repeat the ON/OFF cycle; Setting this value to 0 indicates the action is to be repeated forever.
Trait Implementations§
Source§impl Clone for OsdpCommandBuzzer
impl Clone for OsdpCommandBuzzer
Source§fn clone(&self) -> OsdpCommandBuzzer
fn clone(&self) -> OsdpCommandBuzzer
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 OsdpCommandBuzzer
impl Debug for OsdpCommandBuzzer
Source§impl Default for OsdpCommandBuzzer
impl Default for OsdpCommandBuzzer
Source§fn default() -> OsdpCommandBuzzer
fn default() -> OsdpCommandBuzzer
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OsdpCommandBuzzer
impl<'de> Deserialize<'de> for OsdpCommandBuzzer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<OsdpCommandBuzzer> for osdp_cmd_buzzer
impl From<OsdpCommandBuzzer> for osdp_cmd_buzzer
Source§fn from(value: OsdpCommandBuzzer) -> Self
fn from(value: OsdpCommandBuzzer) -> Self
Converts to this type from the input type.
Source§impl From<osdp_cmd_buzzer> for OsdpCommandBuzzer
impl From<osdp_cmd_buzzer> for OsdpCommandBuzzer
Source§fn from(value: osdp_cmd_buzzer) -> Self
fn from(value: osdp_cmd_buzzer) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OsdpCommandBuzzer
impl PartialEq for OsdpCommandBuzzer
Source§impl Serialize for OsdpCommandBuzzer
impl Serialize for OsdpCommandBuzzer
impl Eq for OsdpCommandBuzzer
impl StructuralPartialEq for OsdpCommandBuzzer
Auto Trait Implementations§
impl Freeze for OsdpCommandBuzzer
impl RefUnwindSafe for OsdpCommandBuzzer
impl Send for OsdpCommandBuzzer
impl Sync for OsdpCommandBuzzer
impl Unpin for OsdpCommandBuzzer
impl UnwindSafe for OsdpCommandBuzzer
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