#[non_exhaustive]pub struct Limits {
pub open_files: Limit,
pub processes: Limit,
pub address_space: Limit,
pub core_dump: Limit,
pub stack: Limit,
}Expand description
This process’s resource limits.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.open_files: LimitOpen files (RLIMIT_NOFILE).
processes: LimitProcesses for this user (RLIMIT_NPROC); Windows: the job’s active
process limit.
address_space: LimitThe address space (RLIMIT_AS); Windows: the job’s process memory
limit.
core_dump: LimitCore dump size (RLIMIT_CORE).
stack: LimitThe main thread’s stack (RLIMIT_STACK).
Trait Implementations§
impl Copy for Limits
impl Eq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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