#[repr(C)]pub struct Rlimit {
pub rlim_cur: usize,
pub rlim_max: usize,
}Expand description
资源限制结构体,对应 C 语言的 struct rlimit。
Fields§
§rlim_cur: usize软限制(内核实际强制执行的值)。
rlim_max: usize硬限制(软限制的上限)。
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rlimit
impl RefUnwindSafe for Rlimit
impl Send for Rlimit
impl Sync for Rlimit
impl Unpin for Rlimit
impl UnwindSafe for Rlimit
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)