pub enum ThreadSchedulePolicy {
Normal(NormalThreadSchedulePolicy),
Realtime(RealtimeThreadSchedulePolicy),
}
Expand description
Thread schedule policy definition.
Variants§
Normal(NormalThreadSchedulePolicy)
Normal thread schedule policies.
Realtime(RealtimeThreadSchedulePolicy)
Realtime thread schedule policies.
Trait Implementations§
source§impl Clone for ThreadSchedulePolicy
impl Clone for ThreadSchedulePolicy
source§fn clone(&self) -> ThreadSchedulePolicy
fn clone(&self) -> ThreadSchedulePolicy
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 ThreadSchedulePolicy
impl Debug for ThreadSchedulePolicy
source§impl Hash for ThreadSchedulePolicy
impl Hash for ThreadSchedulePolicy
source§impl Ord for ThreadSchedulePolicy
impl Ord for ThreadSchedulePolicy
source§fn cmp(&self, other: &ThreadSchedulePolicy) -> Ordering
fn cmp(&self, other: &ThreadSchedulePolicy) -> 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<ThreadSchedulePolicy> for ThreadSchedulePolicy
impl PartialEq<ThreadSchedulePolicy> for ThreadSchedulePolicy
source§fn eq(&self, other: &ThreadSchedulePolicy) -> bool
fn eq(&self, other: &ThreadSchedulePolicy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ThreadSchedulePolicy> for ThreadSchedulePolicy
impl PartialOrd<ThreadSchedulePolicy> for ThreadSchedulePolicy
source§fn partial_cmp(&self, other: &ThreadSchedulePolicy) -> Option<Ordering>
fn partial_cmp(&self, other: &ThreadSchedulePolicy) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more