pub enum OsdpCommand {
Led(OsdpCommandLed),
Buzzer(OsdpCommandBuzzer),
Text(OsdpCommandText),
Output(OsdpCommandOutput),
ComSet(OsdpComSet),
ComSetDone(OsdpComSet),
KeySet(OsdpCommandKeyset),
Mfg(OsdpCommandMfg),
FileTx(OsdpCommandFileTx),
Status(OsdpStatusReport),
}Expand description
CP interacts with and controls PDs by sending commands to it. The commands in this enum are specified by OSDP specification.
Variants§
Led(OsdpCommandLed)
Command to control the behavior of it’s on-board LEDs
Buzzer(OsdpCommandBuzzer)
Command to control the behavior of a buzzer in the PD
Text(OsdpCommandText)
Command to manipulate the on-board display unit (Can be LED, LCD, 7-Segment, etc.,) on the PD
Output(OsdpCommandOutput)
Command to control digital output exposed by the PD
ComSet(OsdpComSet)
Command to request setting the communication parameters for the PD.
ComSetDone(OsdpComSet)
Set communication parameter completed. The effects of this command is expected to be be stored in PD’s non-volatile memory as the CP will expect the PD to be in this state moving forward
KeySet(OsdpCommandKeyset)
Command to set secure channel keys to the PD
Mfg(OsdpCommandMfg)
Command to to act as a wrapper for manufacturer specific commands
FileTx(OsdpCommandFileTx)
Command to kick-off a file transfer to the PD
Status(OsdpStatusReport)
Command to query status from the PD
Trait Implementations§
Source§impl Clone for OsdpCommand
impl Clone for OsdpCommand
Source§fn clone(&self) -> OsdpCommand
fn clone(&self) -> OsdpCommand
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OsdpCommand
impl Debug for OsdpCommand
Source§impl<'de> Deserialize<'de> for OsdpCommand
impl<'de> Deserialize<'de> for OsdpCommand
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>,
Source§impl From<OsdpCommand> for osdp_cmd
impl From<OsdpCommand> for osdp_cmd
Source§fn from(value: OsdpCommand) -> Self
fn from(value: OsdpCommand) -> Self
Source§impl From<osdp_cmd> for OsdpCommand
impl From<osdp_cmd> for OsdpCommand
Source§impl Hash for OsdpCommand
impl Hash for OsdpCommand
Source§impl PartialEq for OsdpCommand
impl PartialEq for OsdpCommand
Source§impl Serialize for OsdpCommand
impl Serialize for OsdpCommand
impl Eq for OsdpCommand
impl StructuralPartialEq for OsdpCommand
Auto Trait Implementations§
impl Freeze for OsdpCommand
impl RefUnwindSafe for OsdpCommand
impl Send for OsdpCommand
impl Sync for OsdpCommand
impl Unpin for OsdpCommand
impl UnwindSafe for OsdpCommand
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)