pub struct Verdict {
pub fits: bool,
pub reasons: Vec<String>,
pub wait_estimate_secs: Option<u64>,
pub benchmark: Option<BenchmarkProgress>,
}Expand description
The admission engine’s answer. Response of POST /can-fit.
Fields§
§fits: boolWhether the job could start now.
reasons: Vec<String>Human-readable explanations, one per limiting or notable factor.
wait_estimate_secs: Option<u64>Expected wait before the job fits, when the daemon can estimate it.
benchmark: Option<BenchmarkProgress>Where a benchmark at the head of the queue stands; None for other requests.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Verdict
impl<'de> Deserialize<'de> for Verdict
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 StructuralPartialEq for Verdict
Auto Trait Implementations§
impl Forget for Verdict
impl Freeze for Verdict
impl RefUnwindSafe for Verdict
impl Send for Verdict
impl Sync for Verdict
impl Unpin for Verdict
impl UnsafeUnpin for Verdict
impl UnwindSafe for Verdict
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