pub struct Profile {
pub memory: u64,
pub cpus: u64,
pub preparing: Option<Preparing>,
pub upkeep_due: bool,
pub count: usize,
pub slots: Vec<Slot>,
}Expand description
A profile’s slots: one concurrent job each.
Fields§
§memory: u64Memory a slot’s container may use.
cpus: u64CPU a slot’s container may use, in millicores; under a CPU budget, at most the budget, as a runner at its caps reserves it.
preparing: Option<Preparing>While the profile’s snapshot is rebuilt or its image pulled, none of its slots starts.
upkeep_due: boolUpkeep waits for its runners, all idle: its reseed (slot 1 ran a job since the last), or the shared caches’ check, which waits for every profile’s. Its warm runners stop, and none starts, so the upkeep can run.
count: usizeIts configured slots. A reload that lowered them leaves runners past them, whose slots close once they end.
slots: Vec<Slot>Index 0 is slot 1.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin for Profile
impl UnwindSafe for Profile
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