pub struct Need {
pub leaves: Vec<String>,
pub min_durability: Durability,
pub rank_by: String,
pub environment: String,
}Expand description
What the consumer needs. Every field is the consumer’s to state.
Fields§
§leaves: Vec<String>The contract leaves the consumer relies on. A backend failing any is excluded.
min_durability: DurabilityThe lowest durability class acceptable.
rank_by: StringThe workload to order eligible backends by (median time, smaller first).
environment: StringEnvironment::comparable_key of the
machine the ranking is for. Measurements from any other environment are not used.
Trait Implementations§
impl Eq for Need
impl StructuralPartialEq for Need
Auto Trait Implementations§
impl Freeze for Need
impl RefUnwindSafe for Need
impl Send for Need
impl Sync for Need
impl Unpin for Need
impl UnsafeUnpin for Need
impl UnwindSafe for Need
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