pub struct ServerUsage {
pub hardware: Option<HardwareUsage>,
pub inference: Option<InferenceUsage>,
}Expand description
The usage half of server telemetry: optional hardware counters plus
optional per-model inference spend.
Fields§
§hardware: Option<HardwareUsage>Hardware counters, when the backend reported them.
inference: Option<InferenceUsage>Per-model inference spend, when the backend reported it.
Implementations§
Trait Implementations§
Source§impl Clone for ServerUsage
impl Clone for ServerUsage
Source§impl Debug for ServerUsage
impl Debug for ServerUsage
Source§impl Default for ServerUsage
impl Default for ServerUsage
Source§impl<'de> Deserialize<'de> for ServerUsage
impl<'de> Deserialize<'de> for ServerUsage
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 ServerUsage
Source§impl PartialEq for ServerUsage
impl PartialEq for ServerUsage
Source§impl Serialize for ServerUsage
impl Serialize for ServerUsage
impl StructuralPartialEq for ServerUsage
Auto Trait Implementations§
impl Freeze for ServerUsage
impl RefUnwindSafe for ServerUsage
impl Send for ServerUsage
impl Sync for ServerUsage
impl Unpin for ServerUsage
impl UnsafeUnpin for ServerUsage
impl UnwindSafe for ServerUsage
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