#[repr(i32)]pub enum FanSpeed {
Low = 0,
Medium = 1,
High = 2,
}Expand description
Deprecated in API version 1.6 - only used in deprecated fields
Variants§
Implementations§
Source§impl FanSpeed
impl FanSpeed
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 Ord for FanSpeed
impl Ord for FanSpeed
Source§impl PartialOrd for FanSpeed
impl PartialOrd for FanSpeed
impl Copy for FanSpeed
impl Eq for FanSpeed
impl StructuralPartialEq for FanSpeed
Auto Trait Implementations§
impl Freeze for FanSpeed
impl RefUnwindSafe for FanSpeed
impl Send for FanSpeed
impl Sync for FanSpeed
impl Unpin for FanSpeed
impl UnwindSafe for FanSpeed
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