pub struct CpuScheduling { /* private fields */ }
Expand description

The CPU scheduling for running a transient service on the system service manager. See CPUSchedulingPolicy=, CPUSchedulingPriority=, and CPUSchedulingResetOnFork= in systemd.exec(5) and sched_setscheduler(2) for details.

Implementations§

For “batch” style execution of processes, SCHED_BATCH.

For running very low priority background jobs, SCHED_IDLE.

A first-in, first-out real-time policy, SCHED_FIFO, with specified priority. The priority must be in [1, 99].

This would be unavailable if the feature systemd_252 is disabled because it was broken by systemd #20320. Use Self::fifo_default_priority instead.

Like Self::fifo but with default priority.

A round-robin real-time policy, SCHED_RR, with specified priority. The priority must be in [1, 99].

This would be unavailable if the feature systemd_252 is disabled because it was broken by systemd #20320. Use Self::round_robin_default_priority instead.

Like Self::round_robin but with default priority.

Make the children created by fork(2) do not inherit privileged scheduling policies.

Trait Implementations§

The default CPU scheduling policy, SCHED_OTHER.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The none-equivalent value.
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more