#[repr(i32)]pub enum KernelFlag {
Cswitch = 0,
Dispatcher = 1,
}
Expand description
The KernelFlag represent list of kernel flags that we are intrested in. To get a more extensive list run ‘xperf -providers k’.
Variants§
Implementations§
Source§impl KernelFlag
impl KernelFlag
Source§impl KernelFlag
impl KernelFlag
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 KernelFlag
impl Clone for KernelFlag
Source§fn clone(&self) -> KernelFlag
fn clone(&self) -> KernelFlag
Returns a copy 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 KernelFlag
impl Debug for KernelFlag
Source§impl Default for KernelFlag
impl Default for KernelFlag
Source§fn default() -> KernelFlag
fn default() -> KernelFlag
Returns the “default value” for a type. Read more
Source§impl From<KernelFlag> for i32
impl From<KernelFlag> for i32
Source§fn from(value: KernelFlag) -> i32
fn from(value: KernelFlag) -> i32
Converts to this type from the input type.
Source§impl Hash for KernelFlag
impl Hash for KernelFlag
Source§impl Ord for KernelFlag
impl Ord for KernelFlag
Source§fn cmp(&self, other: &KernelFlag) -> Ordering
fn cmp(&self, other: &KernelFlag) -> 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 KernelFlag
impl PartialEq for KernelFlag
Source§impl PartialOrd for KernelFlag
impl PartialOrd for KernelFlag
Source§impl TryFrom<i32> for KernelFlag
impl TryFrom<i32> for KernelFlag
Source§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<KernelFlag, DecodeError>
fn try_from(value: i32) -> Result<KernelFlag, DecodeError>
Performs the conversion.
impl Copy for KernelFlag
impl Eq for KernelFlag
impl StructuralPartialEq for KernelFlag
Auto Trait Implementations§
impl Freeze for KernelFlag
impl RefUnwindSafe for KernelFlag
impl Send for KernelFlag
impl Sync for KernelFlag
impl Unpin for KernelFlag
impl UnwindSafe for KernelFlag
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