#[repr(i32)]pub enum FtraceClock {
Unspecified = 0,
Unknown = 1,
Global = 2,
Local = 3,
MonoRaw = 4,
}
Variants§
Unspecified = 0
There is no FTRACE_CLOCK_BOOT entry as that’s the default assumption. When the ftrace clock is “boot”, it’s just omitted (so UNSPECIFIED == BOOT).
Unknown = 1
Global = 2
Local = 3
MonoRaw = 4
Implementations§
Source§impl FtraceClock
impl FtraceClock
Source§impl FtraceClock
impl FtraceClock
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 FtraceClock
impl Clone for FtraceClock
Source§fn clone(&self) -> FtraceClock
fn clone(&self) -> FtraceClock
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 FtraceClock
impl Debug for FtraceClock
Source§impl Default for FtraceClock
impl Default for FtraceClock
Source§fn default() -> FtraceClock
fn default() -> FtraceClock
Returns the “default value” for a type. Read more
Source§impl From<FtraceClock> for i32
impl From<FtraceClock> for i32
Source§fn from(value: FtraceClock) -> i32
fn from(value: FtraceClock) -> i32
Converts to this type from the input type.
Source§impl Hash for FtraceClock
impl Hash for FtraceClock
Source§impl Ord for FtraceClock
impl Ord for FtraceClock
Source§fn cmp(&self, other: &FtraceClock) -> Ordering
fn cmp(&self, other: &FtraceClock) -> 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 FtraceClock
impl PartialEq for FtraceClock
Source§impl PartialOrd for FtraceClock
impl PartialOrd for FtraceClock
Source§impl TryFrom<i32> for FtraceClock
impl TryFrom<i32> for FtraceClock
Source§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<FtraceClock, DecodeError>
fn try_from(value: i32) -> Result<FtraceClock, DecodeError>
Performs the conversion.
impl Copy for FtraceClock
impl Eq for FtraceClock
impl StructuralPartialEq for FtraceClock
Auto Trait Implementations§
impl Freeze for FtraceClock
impl RefUnwindSafe for FtraceClock
impl Send for FtraceClock
impl Sync for FtraceClock
impl Unpin for FtraceClock
impl UnwindSafe for FtraceClock
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