Struct oci_spec::runtime::SchedulerBuilder
source · 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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SchedulerBuilder
impl RefUnwindSafe for SchedulerBuilder
impl Send for SchedulerBuilder
impl Sync for SchedulerBuilder
impl Unpin for SchedulerBuilder
impl UnwindSafe for SchedulerBuilder
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