pub struct JobRunner {
pub name: String,
pub profile: String,
pub slot: usize,
pub memory_cap: Option<u64>,
pub cpu_cap: Option<u64>,
}Expand description
The runner a job ran on.
Fields§
§name: StringThe runner’s name, also its container’s.
profile: StringThe profile it ran in.
slot: usizeThe slot it ran in, 1-based.
memory_cap: Option<u64>Its container’s memory cap in bytes, which a reload since may have changed in the profile. None in records
from before runnerd kept it.
cpu_cap: Option<u64>Its container’s CPU limit in millicores, the unit of the CPU use in Sample and JobMetrics. None in
records from before runnerd kept it, or when Docker reports no limit.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JobRunner
impl<'de> Deserialize<'de> for JobRunner
Source§fn 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
impl Eq for JobRunner
impl StructuralPartialEq for JobRunner
Auto Trait Implementations§
impl Freeze for JobRunner
impl RefUnwindSafe for JobRunner
impl Send for JobRunner
impl Sync for JobRunner
impl Unpin for JobRunner
impl UnsafeUnpin for JobRunner
impl UnwindSafe for JobRunner
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