#[repr(C)]pub struct SchedulerParams {
pub priority: c_int,
}Expand description
Schedule parameters for a thread. Priority is the only supported parameter by the kernel
at the moment. This is a wrapper around libc::sched_param
Fields§
§priority: c_intPriority of the current schedule.
Trait Implementations§
Source§impl Clone for SchedulerParams
impl Clone for SchedulerParams
Source§fn clone(&self) -> SchedulerParams
fn clone(&self) -> SchedulerParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SchedulerParams
impl Debug for SchedulerParams
Source§impl From<SchedulerParams> for sched_param
Available on Linux only.
impl From<SchedulerParams> for sched_param
Available on Linux only.
Source§fn from(param: SchedulerParams) -> Self
fn from(param: SchedulerParams) -> Self
Converts to this type from the input type.
Source§impl From<sched_param> for SchedulerParams
Available on Linux or macOS only.
impl From<sched_param> for SchedulerParams
Available on Linux or macOS only.
Source§fn from(param: sched_param) -> Self
fn from(param: sched_param) -> Self
Converts to this type from the input type.
Source§impl IntoSchedParams for SchedulerParams
impl IntoSchedParams for SchedulerParams
fn into_sched_params(self) -> SchedulerParams
Source§impl Ord for SchedulerParams
impl Ord for SchedulerParams
Source§fn cmp(&self, other: &SchedulerParams) -> Ordering
fn cmp(&self, other: &SchedulerParams) -> Ordering
1.21.0 (const: unstable) · 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 SchedulerParams
impl PartialEq for SchedulerParams
Source§fn eq(&self, other: &SchedulerParams) -> bool
fn eq(&self, other: &SchedulerParams) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SchedulerParams
impl PartialOrd for SchedulerParams
impl Copy for SchedulerParams
impl Eq for SchedulerParams
impl StructuralPartialEq for SchedulerParams
Auto Trait Implementations§
impl Freeze for SchedulerParams
impl RefUnwindSafe for SchedulerParams
impl Send for SchedulerParams
impl Sync for SchedulerParams
impl Unpin for SchedulerParams
impl UnsafeUnpin for SchedulerParams
impl UnwindSafe for SchedulerParams
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