pub struct SchedulerBuilder { /* private fields */ }Expand description
Builder for Scheduler.
Implementations§
Source§impl SchedulerBuilder
impl SchedulerBuilder
Sourcepub fn policy<VALUE: Into<LinuxSchedulerPolicy>>(self, value: VALUE) -> Self
pub fn policy<VALUE: Into<LinuxSchedulerPolicy>>(self, value: VALUE) -> Self
Policy represents the scheduling policy (e.g., SCHED_FIFO, SCHED_RR, SCHED_OTHER).
Sourcepub fn nice<VALUE: Into<i32>>(self, value: VALUE) -> Self
pub fn nice<VALUE: Into<i32>>(self, value: VALUE) -> Self
Nice is the nice value for the process, which affects its priority.
Sourcepub fn priority<VALUE: Into<i32>>(self, value: VALUE) -> Self
pub fn priority<VALUE: Into<i32>>(self, value: VALUE) -> Self
Priority represents the static priority of the process.
Sourcepub fn flags<VALUE: Into<Vec<LinuxSchedulerFlag>>>(self, value: VALUE) -> Self
pub fn flags<VALUE: Into<Vec<LinuxSchedulerFlag>>>(self, value: VALUE) -> Self
Flags is an array of scheduling flags.
Sourcepub fn runtime<VALUE: Into<u64>>(self, value: VALUE) -> Self
pub fn runtime<VALUE: Into<u64>>(self, value: VALUE) -> Self
Runtime is the amount of time in nanoseconds during which the process is allowed to run in a given period.
Sourcepub fn deadline<VALUE: Into<u64>>(self, value: VALUE) -> Self
pub fn deadline<VALUE: Into<u64>>(self, value: VALUE) -> Self
Deadline is the absolute deadline for the process to complete its execution.