pub struct Context<'run> {
pub memory_max: Option<u64>,
pub cpus: Option<u64>,
pub window: Window,
pub last: &'run BTreeMap<String, u64>,
pub running: &'run BTreeMap<String, u32>,
}Expand description
What auto sizing reads besides the config and the history.
Fields§
§memory_max: Option<u64>The slice’s MemoryMax; None when it is unlimited.
cpus: Option<u64>The slice’s CPUs, in millicores; None when they could not be read, and then cpus are never raised.
window: WindowThe history’s window; now is when the changes are made.
last: &'run BTreeMap<String, u64>When auto sizing last changed each profile, in seconds, by name, however long ago.
running: &'run BTreeMap<String, u32>How many runners each profile runs now, by name.
Trait Implementations§
Auto Trait Implementations§
impl<'run> Freeze for Context<'run>
impl<'run> RefUnwindSafe for Context<'run>
impl<'run> Send for Context<'run>
impl<'run> Sync for Context<'run>
impl<'run> Unpin for Context<'run>
impl<'run> UnsafeUnpin for Context<'run>
impl<'run> UnwindSafe for Context<'run>
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