#[repr(i32)]pub enum ThreadOrdering {
Unspecified = 0,
Explicit = 1,
}Expand description
Specifies how the UI should display thread tracks within a process group relative to each other. Note that this value is simply a hint to the UI and is only valid on the root track descriptor (uuid = 0).
Variants§
Unspecified = 0
The default ordering, with no bearing on how the UI will visualise the threads.
Explicit = 1
Order threads by sibling_order_rank of their thread track descriptors.
Threads with lower ranks will be shown before threads with higher ranks.
Threads with no rank specified will be treated as having a rank of 0.
Implementations§
Source§impl ThreadOrdering
impl ThreadOrdering
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 ThreadOrdering
impl Clone for ThreadOrdering
Source§fn clone(&self) -> ThreadOrdering
fn clone(&self) -> ThreadOrdering
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ThreadOrdering
impl Debug for ThreadOrdering
Source§impl Default for ThreadOrdering
impl Default for ThreadOrdering
Source§fn default() -> ThreadOrdering
fn default() -> ThreadOrdering
Source§impl From<ThreadOrdering> for i32
impl From<ThreadOrdering> for i32
Source§fn from(value: ThreadOrdering) -> i32
fn from(value: ThreadOrdering) -> i32
Source§impl Hash for ThreadOrdering
impl Hash for ThreadOrdering
Source§impl Ord for ThreadOrdering
impl Ord for ThreadOrdering
Source§fn cmp(&self, other: &ThreadOrdering) -> Ordering
fn cmp(&self, other: &ThreadOrdering) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ThreadOrdering
impl PartialEq for ThreadOrdering
Source§fn eq(&self, other: &ThreadOrdering) -> bool
fn eq(&self, other: &ThreadOrdering) -> bool
self and other values to be equal, and is used by ==.