pub struct ResourceLimit { /* private fields */ }Expand description
One raw-preserving resource-limit declaration.
Implementations§
Source§impl ResourceLimit
impl ResourceLimit
Sourcepub const fn new(
name: ProtectedString,
soft: Option<Sourced<ProtectedString>>,
hard: Option<Sourced<ProtectedString>>,
) -> Self
pub const fn new( name: ProtectedString, soft: Option<Sourced<ProtectedString>>, hard: Option<Sourced<ProtectedString>>, ) -> Self
Creates a limit with independently sourced soft and hard values.
Sourcepub const fn name(&self) -> &ProtectedString
pub const fn name(&self) -> &ProtectedString
Returns the raw limit name.
Sourcepub const fn soft(&self) -> Option<&Sourced<ProtectedString>>
pub const fn soft(&self) -> Option<&Sourced<ProtectedString>>
Returns the optional soft value.
Sourcepub const fn hard(&self) -> Option<&Sourced<ProtectedString>>
pub const fn hard(&self) -> Option<&Sourced<ProtectedString>>
Returns the optional hard value.
Trait Implementations§
Source§impl Clone for ResourceLimit
impl Clone for ResourceLimit
Source§fn clone(&self) -> ResourceLimit
fn clone(&self) -> ResourceLimit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResourceLimit
impl Debug for ResourceLimit
impl Eq for ResourceLimit
Source§impl PartialEq for ResourceLimit
impl PartialEq for ResourceLimit
impl StructuralPartialEq for ResourceLimit
Auto Trait Implementations§
impl Freeze for ResourceLimit
impl RefUnwindSafe for ResourceLimit
impl Send for ResourceLimit
impl Sync for ResourceLimit
impl Unpin for ResourceLimit
impl UnsafeUnpin for ResourceLimit
impl UnwindSafe for ResourceLimit
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