pub struct RuntimeBid {
pub tier: RunTier,
pub preference: i64,
pub alternatives: Vec<RuntimeId>,
}Expand description
A runtime adapter’s offer to serve a model: how well it runs (the tier), a ranking preference (lower wins), and the other runtimes that could also serve it (recorded as alternatives on the resolved record).
Fields§
§tier: RunTierHow the runtime would run the model.
preference: i64The ranking preference: a lower value wins. The tier is not part of the
ordering (it is recorded on the winner, not compared).
alternatives: Vec<RuntimeId>Other runtimes that could serve the model.
Implementations§
Trait Implementations§
Source§impl Clone for RuntimeBid
impl Clone for RuntimeBid
Source§fn clone(&self) -> RuntimeBid
fn clone(&self) -> RuntimeBid
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeBid
impl Debug for RuntimeBid
impl Eq for RuntimeBid
Source§impl Hash for RuntimeBid
impl Hash for RuntimeBid
Source§impl PartialEq for RuntimeBid
impl PartialEq for RuntimeBid
impl StructuralPartialEq for RuntimeBid
Auto Trait Implementations§
impl Freeze for RuntimeBid
impl RefUnwindSafe for RuntimeBid
impl Send for RuntimeBid
impl Sync for RuntimeBid
impl Unpin for RuntimeBid
impl UnsafeUnpin for RuntimeBid
impl UnwindSafe for RuntimeBid
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