pub struct ExtendedLimitInfo(pub JOBOBJECT_EXTENDED_LIMIT_INFORMATION);

Tuple Fields

0: JOBOBJECT_EXTENDED_LIMIT_INFORMATION

Implementations

Contains basic and extended limit information for a job object, with helper methods for easy limit manipulation. To apply limits, pass the instance of this struct to Job::create_with_limit_info or job.set_extended_limit_info.

Return an empty extended info objects, without any limits.

Causes all processes associated with the job to use the same minimum and maximum working set sizes

Causes all processes associated with the job to terminate when the last handle to the job is closed. Note, that that droping the Job struct closes this handle, and if it’s the only handle to the job the current process will terminate if it’s assign to that job.

Causes all processes associated with the job to use the same priority class. Note: Processes and threads cannot modify their priority class. The calling process must enable the SE_INC_BASE_PRIORITY_NAME privilege.

Causes all processes in the job to use the same scheduling class. The valid values are 0 to 9. Use 0 for the least favorable scheduling class relative to other threads, and 9 for the most favorable scheduling class relative to other threads. By default, this value is 5. Note: To use a scheduling class greater than 5, the calling process must enable the SE_INC_BASE_PRIORITY_NAME privilege.

Causes all processes associated with the job to use the same processor affinity.

Clear all limits.

Trait Implementations

Returns the “default value” for a type. Read more

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.

Calls U::from(self).

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

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.