pub struct TargetThroughput {
pub ops_per_sec_milli: u32,
}Expand description
Optional throughput target for charters that want to drive a steady load (e.g. C1: ~10 inferences/min). Advisory only — caps still bind.
Fields§
§ops_per_sec_milli: u32Operations per second, scaled by 1000 (i.e. 167 = 0.167 ops/s = 10 ops/min). Avoids float in serialized form.
Trait Implementations§
Source§impl Clone for TargetThroughput
impl Clone for TargetThroughput
Source§fn clone(&self) -> TargetThroughput
fn clone(&self) -> TargetThroughput
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 TargetThroughput
impl Debug for TargetThroughput
Source§impl<'de> Deserialize<'de> for TargetThroughput
impl<'de> Deserialize<'de> for TargetThroughput
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 TargetThroughput
Source§impl PartialEq for TargetThroughput
impl PartialEq for TargetThroughput
Source§fn eq(&self, other: &TargetThroughput) -> bool
fn eq(&self, other: &TargetThroughput) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TargetThroughput
impl Serialize for TargetThroughput
impl StructuralPartialEq for TargetThroughput
Auto Trait Implementations§
impl Freeze for TargetThroughput
impl RefUnwindSafe for TargetThroughput
impl Send for TargetThroughput
impl Sync for TargetThroughput
impl Unpin for TargetThroughput
impl UnsafeUnpin for TargetThroughput
impl UnwindSafe for TargetThroughput
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