pub struct GovernorConfig {
pub global_ceiling: usize,
pub engine_limits: HashMap<EngineId, usize>,
}Expand description
Configuration for the memory governor.
Fields§
§global_ceiling: usizeGlobal memory ceiling in bytes. The sum of all engine budgets must not exceed this.
engine_limits: HashMap<EngineId, usize>Per-engine budget limits.
Implementations§
Trait Implementations§
Source§impl Clone for GovernorConfig
impl Clone for GovernorConfig
Source§fn clone(&self) -> GovernorConfig
fn clone(&self) -> GovernorConfig
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for GovernorConfig
impl RefUnwindSafe for GovernorConfig
impl Send for GovernorConfig
impl Sync for GovernorConfig
impl Unpin for GovernorConfig
impl UnsafeUnpin for GovernorConfig
impl UnwindSafe for GovernorConfig
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