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 for ThreadSchedulePolicy
impl PartialEq for ThreadSchedulePolicy
Source§impl PartialOrd for ThreadSchedulePolicy
impl PartialOrd for ThreadSchedulePolicy
impl Copy for ThreadSchedulePolicy
impl Eq for ThreadSchedulePolicy
impl StructuralPartialEq for ThreadSchedulePolicy
Auto Trait Implementations§
impl Freeze for ThreadSchedulePolicy
impl RefUnwindSafe for ThreadSchedulePolicy
impl Send for ThreadSchedulePolicy
impl Sync for ThreadSchedulePolicy
impl Unpin for ThreadSchedulePolicy
impl UnwindSafe for ThreadSchedulePolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)