#[repr(i32)]pub enum AlarmControlPanelStateCommand {
AlarmControlPanelDisarm = 0,
AlarmControlPanelArmAway = 1,
AlarmControlPanelArmHome = 2,
AlarmControlPanelArmNight = 3,
AlarmControlPanelArmVacation = 4,
AlarmControlPanelArmCustomBypass = 5,
AlarmControlPanelTrigger = 6,
}Variants§
AlarmControlPanelDisarm = 0
AlarmControlPanelArmAway = 1
AlarmControlPanelArmHome = 2
AlarmControlPanelArmNight = 3
AlarmControlPanelArmVacation = 4
AlarmControlPanelArmCustomBypass = 5
AlarmControlPanelTrigger = 6
Implementations§
Source§impl AlarmControlPanelStateCommand
impl AlarmControlPanelStateCommand
Sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true if value is a variant of AlarmControlPanelStateCommand.
Sourcepub fn from_i32(value: i32) -> Option<AlarmControlPanelStateCommand>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<AlarmControlPanelStateCommand>
Converts an i32 to a AlarmControlPanelStateCommand, or None if value is not a valid variant.
Source§impl AlarmControlPanelStateCommand
impl AlarmControlPanelStateCommand
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for AlarmControlPanelStateCommand
impl Clone for AlarmControlPanelStateCommand
Source§fn clone(&self) -> AlarmControlPanelStateCommand
fn clone(&self) -> AlarmControlPanelStateCommand
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 Default for AlarmControlPanelStateCommand
impl Default for AlarmControlPanelStateCommand
Source§fn default() -> AlarmControlPanelStateCommand
fn default() -> AlarmControlPanelStateCommand
Returns the “default value” for a type. Read more
Source§impl From<AlarmControlPanelStateCommand> for i32
impl From<AlarmControlPanelStateCommand> for i32
Source§fn from(value: AlarmControlPanelStateCommand) -> i32
fn from(value: AlarmControlPanelStateCommand) -> i32
Converts to this type from the input type.
Source§impl Hash for AlarmControlPanelStateCommand
impl Hash for AlarmControlPanelStateCommand
Source§impl Ord for AlarmControlPanelStateCommand
impl Ord for AlarmControlPanelStateCommand
Source§fn cmp(&self, other: &AlarmControlPanelStateCommand) -> Ordering
fn cmp(&self, other: &AlarmControlPanelStateCommand) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AlarmControlPanelStateCommand
impl PartialEq for AlarmControlPanelStateCommand
Source§fn eq(&self, other: &AlarmControlPanelStateCommand) -> bool
fn eq(&self, other: &AlarmControlPanelStateCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AlarmControlPanelStateCommand
impl PartialOrd for AlarmControlPanelStateCommand
Source§impl TryFrom<i32> for AlarmControlPanelStateCommand
impl TryFrom<i32> for AlarmControlPanelStateCommand
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(
value: i32,
) -> Result<AlarmControlPanelStateCommand, UnknownEnumValue>
fn try_from( value: i32, ) -> Result<AlarmControlPanelStateCommand, UnknownEnumValue>
Performs the conversion.
impl Copy for AlarmControlPanelStateCommand
impl Eq for AlarmControlPanelStateCommand
impl StructuralPartialEq for AlarmControlPanelStateCommand
Auto Trait Implementations§
impl Freeze for AlarmControlPanelStateCommand
impl RefUnwindSafe for AlarmControlPanelStateCommand
impl Send for AlarmControlPanelStateCommand
impl Sync for AlarmControlPanelStateCommand
impl Unpin for AlarmControlPanelStateCommand
impl UnwindSafe for AlarmControlPanelStateCommand
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