#[repr(i32)]pub enum EcpuGovernor {
KEcpuGovernorInvalid = 0,
KEcpuGovernorPerf = 1,
KEcpuGovernorPowersave = 2,
KEcpuGovernorManual = 3,
}Variants§
Implementations§
Source§impl EcpuGovernor
impl EcpuGovernor
Source§impl EcpuGovernor
impl EcpuGovernor
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 EcpuGovernor
impl Clone for EcpuGovernor
Source§fn clone(&self) -> EcpuGovernor
fn clone(&self) -> EcpuGovernor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EcpuGovernor
Source§impl Debug for EcpuGovernor
impl Debug for EcpuGovernor
Source§impl Default for EcpuGovernor
impl Default for EcpuGovernor
Source§fn default() -> EcpuGovernor
fn default() -> EcpuGovernor
Returns the “default value” for a type. Read more
impl Eq for EcpuGovernor
Source§impl From<EcpuGovernor> for i32
impl From<EcpuGovernor> for i32
Source§fn from(value: EcpuGovernor) -> i32
fn from(value: EcpuGovernor) -> i32
Converts to this type from the input type.
Source§impl Hash for EcpuGovernor
impl Hash for EcpuGovernor
Source§impl Ord for EcpuGovernor
impl Ord for EcpuGovernor
Source§fn cmp(&self, other: &EcpuGovernor) -> Ordering
fn cmp(&self, other: &EcpuGovernor) -> Ordering
1.21.0 (const: unstable) · 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 EcpuGovernor
impl PartialEq for EcpuGovernor
Source§fn eq(&self, other: &EcpuGovernor) -> bool
fn eq(&self, other: &EcpuGovernor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for EcpuGovernor
impl PartialOrd for EcpuGovernor
impl StructuralPartialEq for EcpuGovernor
Source§impl TryFrom<i32> for EcpuGovernor
impl TryFrom<i32> for EcpuGovernor
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<EcpuGovernor, UnknownEnumValue>
fn try_from(value: i32) -> Result<EcpuGovernor, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for EcpuGovernor
impl RefUnwindSafe for EcpuGovernor
impl Send for EcpuGovernor
impl Sync for EcpuGovernor
impl Unpin for EcpuGovernor
impl UnsafeUnpin for EcpuGovernor
impl UnwindSafe for EcpuGovernor
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