#[repr(i32)]pub enum LegacyCoverCommand {
Open = 0,
Close = 1,
Stop = 2,
}
Variants§
Implementations§
Source§impl LegacyCoverCommand
impl LegacyCoverCommand
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 LegacyCoverCommand
impl Clone for LegacyCoverCommand
Source§fn clone(&self) -> LegacyCoverCommand
fn clone(&self) -> LegacyCoverCommand
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 LegacyCoverCommand
impl Debug for LegacyCoverCommand
Source§impl Default for LegacyCoverCommand
impl Default for LegacyCoverCommand
Source§fn default() -> LegacyCoverCommand
fn default() -> LegacyCoverCommand
Returns the “default value” for a type. Read more
Source§impl From<LegacyCoverCommand> for i32
impl From<LegacyCoverCommand> for i32
Source§fn from(value: LegacyCoverCommand) -> i32
fn from(value: LegacyCoverCommand) -> i32
Converts to this type from the input type.
Source§impl Hash for LegacyCoverCommand
impl Hash for LegacyCoverCommand
Source§impl Ord for LegacyCoverCommand
impl Ord for LegacyCoverCommand
Source§fn cmp(&self, other: &LegacyCoverCommand) -> Ordering
fn cmp(&self, other: &LegacyCoverCommand) -> 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 LegacyCoverCommand
impl PartialEq for LegacyCoverCommand
Source§impl PartialOrd for LegacyCoverCommand
impl PartialOrd for LegacyCoverCommand
Source§impl TryFrom<i32> for LegacyCoverCommand
impl TryFrom<i32> for LegacyCoverCommand
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<LegacyCoverCommand, UnknownEnumValue>
fn try_from(value: i32) -> Result<LegacyCoverCommand, UnknownEnumValue>
Performs the conversion.
impl Copy for LegacyCoverCommand
impl Eq for LegacyCoverCommand
impl StructuralPartialEq for LegacyCoverCommand
Auto Trait Implementations§
impl Freeze for LegacyCoverCommand
impl RefUnwindSafe for LegacyCoverCommand
impl Send for LegacyCoverCommand
impl Sync for LegacyCoverCommand
impl Unpin for LegacyCoverCommand
impl UnwindSafe for LegacyCoverCommand
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