pub struct AllocationMetricBuilder { /* private fields */ }
Expand description
Builder for AllocationMetric
.
Implementations§
Source§impl AllocationMetricBuilder
impl AllocationMetricBuilder
pub fn nodes_evaluated(&mut self, value: i64) -> &mut Self
pub fn nodes_filtered(&mut self, value: i64) -> &mut Self
pub fn nodes_in_pool(&mut self, value: i64) -> &mut Self
pub fn nodes_available(&mut self, value: HashMap<String, i64>) -> &mut Self
pub fn class_filtered(&mut self, value: HashMap<String, i64>) -> &mut Self
pub fn constraint_filtered(&mut self, value: HashMap<String, i64>) -> &mut Self
pub fn nodes_exhausted(&mut self, value: i64) -> &mut Self
pub fn class_exhausted(&mut self, value: HashMap<String, i64>) -> &mut Self
pub fn dimension_exhausted(&mut self, value: HashMap<String, i64>) -> &mut Self
pub fn quota_exhausted(&mut self, value: Vec<String>) -> &mut Self
pub fn resources_exhausted( &mut self, value: HashMap<String, Resources>, ) -> &mut Self
Sourcepub fn scores(&mut self, value: HashMap<String, f64>) -> &mut Self
pub fn scores(&mut self, value: HashMap<String, f64>) -> &mut Self
Deprecated, replaced with ScoreMetaData
pub fn allocation_time(&mut self, value: TimeDelta) -> &mut Self
pub fn coalesced_failures(&mut self, value: i64) -> &mut Self
pub fn score_meta_data(&mut self, value: Vec<NodeScoreMeta>) -> &mut Self
Sourcepub fn build(&self) -> Result<AllocationMetric, AllocationMetricBuilderError>
pub fn build(&self) -> Result<AllocationMetric, AllocationMetricBuilderError>
Trait Implementations§
Source§impl Clone for AllocationMetricBuilder
impl Clone for AllocationMetricBuilder
Source§fn clone(&self) -> AllocationMetricBuilder
fn clone(&self) -> AllocationMetricBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for AllocationMetricBuilder
impl RefUnwindSafe for AllocationMetricBuilder
impl Send for AllocationMetricBuilder
impl Sync for AllocationMetricBuilder
impl Unpin for AllocationMetricBuilder
impl UnwindSafe for AllocationMetricBuilder
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