Struct rd_agent_intf::slices::SliceConfig
source · [−]pub struct SliceConfig {
pub cpu_weight: u32,
pub io_weight: u32,
pub mem_min: MemoryKnob,
pub mem_low: MemoryKnob,
pub mem_high: MemoryKnob,
}
Fields
cpu_weight: u32
io_weight: u32
mem_min: MemoryKnob
mem_low: MemoryKnob
mem_high: MemoryKnob
Implementations
sourceimpl SliceConfig
impl SliceConfig
pub const DFL_SYS_CPU_RATIO: f64 = 0.10000000000000001f64
pub const DFL_SYS_IO_RATIO: f64 = 0.10000000000000001f64
pub const DFL_MEM_MARGIN: f64 = 0.25f64
pub fn dfl_mem_margin(total: usize, fb_prod: bool) -> u64
Trait Implementations
sourceimpl Clone for SliceConfig
impl Clone for SliceConfig
sourcefn clone(&self) -> SliceConfig
fn clone(&self) -> SliceConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SliceConfig
impl Debug for SliceConfig
sourceimpl Default for SliceConfig
impl Default for SliceConfig
sourceimpl<'de> Deserialize<'de> for SliceConfig
impl<'de> Deserialize<'de> for SliceConfig
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<SliceConfig> for SliceConfig
impl PartialEq<SliceConfig> for SliceConfig
sourcefn eq(&self, other: &SliceConfig) -> bool
fn eq(&self, other: &SliceConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SliceConfig) -> bool
fn ne(&self, other: &SliceConfig) -> bool
This method tests for !=
.
sourceimpl Serialize for SliceConfig
impl Serialize for SliceConfig
impl StructuralPartialEq for SliceConfig
Auto Trait Implementations
impl RefUnwindSafe for SliceConfig
impl Send for SliceConfig
impl Sync for SliceConfig
impl Unpin for SliceConfig
impl UnwindSafe for SliceConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more