pub struct LimitRecord {
pub resource: String,
pub soft: Option<u64>,
pub hard: Option<u64>,
}Expand description
One resource limit, soft and hard.
Fields§
§resource: StringThe resource, as prlimit names it, such as nofile.
soft: Option<u64>The soft limit, or None when it is unlimited.
hard: Option<u64>The hard limit, or None when it is unlimited.
Trait Implementations§
Source§impl Clone for LimitRecord
impl Clone for LimitRecord
Source§impl Debug for LimitRecord
impl Debug for LimitRecord
Source§impl<'bytes, Ctx> Decode<'bytes, Ctx> for LimitRecord
impl<'bytes, Ctx> Decode<'bytes, Ctx> for LimitRecord
Source§impl<Ctx> Encode<Ctx> for LimitRecord
impl<Ctx> Encode<Ctx> for LimitRecord
impl Eq for LimitRecord
Source§impl Hash for LimitRecord
impl Hash for LimitRecord
Source§impl PartialEq for LimitRecord
impl PartialEq for LimitRecord
impl StructuralPartialEq for LimitRecord
Auto Trait Implementations§
impl Freeze for LimitRecord
impl RefUnwindSafe for LimitRecord
impl Send for LimitRecord
impl Sync for LimitRecord
impl Unpin for LimitRecord
impl UnsafeUnpin for LimitRecord
impl UnwindSafe for LimitRecord
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.