pub struct UnitResCtl {
pub cpu_weight: Option<u64>,
pub io_weight: Option<u64>,
pub mem_min: Option<u64>,
pub mem_low: Option<u64>,
pub mem_high: Option<u64>,
pub mem_max: Option<u64>,
}
Fields§
§cpu_weight: Option<u64>
§io_weight: Option<u64>
§mem_min: Option<u64>
§mem_low: Option<u64>
§mem_high: Option<u64>
§mem_max: Option<u64>
Trait Implementations§
Source§impl Clone for UnitResCtl
impl Clone for UnitResCtl
Source§fn clone(&self) -> UnitResCtl
fn clone(&self) -> UnitResCtl
Returns a copy of the value. Read more
1.0.0 · 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 UnitResCtl
impl Debug for UnitResCtl
Source§impl Default for UnitResCtl
impl Default for UnitResCtl
Source§fn default() -> UnitResCtl
fn default() -> UnitResCtl
Returns the “default value” for a type. Read more
Source§impl Display for UnitResCtl
impl Display for UnitResCtl
Source§impl PartialEq for UnitResCtl
impl PartialEq for UnitResCtl
impl Eq for UnitResCtl
impl StructuralPartialEq for UnitResCtl
Auto Trait Implementations§
impl Freeze for UnitResCtl
impl RefUnwindSafe for UnitResCtl
impl Send for UnitResCtl
impl Sync for UnitResCtl
impl Unpin for UnitResCtl
impl UnwindSafe for UnitResCtl
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more