pub struct Admission {
pub policy: AdmissionPolicy,
pub reserved: u64,
pub basis: Basis,
pub free: Option<u64>,
pub slice: Option<u64>,
pub cpu: Option<CpuAdmission>,
}Expand description
How a job’s runner was admitted.
Fields§
§policy: AdmissionPolicyThe policy it was admitted by.
reserved: u64What it reserved of the budget: under measured admission the largest prediction of its repository’s queued jobs, since GitHub may have given it any of them.
basis: BasisWhat that went by.
free: Option<u64>The budget the other runners, the mirror and any shell left before it started; None for an unlimited
slice.
slice: Option<u64>The slice’s memory then, less its inactive page cache (HostSample::memory); None without a recent sample.
cpu: Option<CpuAdmission>What it reserved of the CPU budget, under [host] cpu_overcommit. Absent without one.
Implementations§
Trait Implementations§
impl Copy for Admission
Source§impl<'de> Deserialize<'de> for Admission
impl<'de> Deserialize<'de> for Admission
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 Admission
impl StructuralPartialEq for Admission
Auto Trait Implementations§
impl Freeze for Admission
impl RefUnwindSafe for Admission
impl Send for Admission
impl Sync for Admission
impl Unpin for Admission
impl UnsafeUnpin for Admission
impl UnwindSafe for Admission
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.