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