pub struct SystemMetricsResponse {Show 15 fields
pub cpu_usage_percent: f32,
pub per_core_usage: Vec<f32>,
pub cpu_model_name: String,
pub cpu_frequency_mhz: u64,
pub gpu_available: bool,
pub gpu_name: String,
pub gpu_usage_percent: f32,
pub gpu_vram_total_gb: f32,
pub gpu_vram_used_gb: f32,
pub gpu_temperature_c: f32,
pub memory_total_gb: f32,
pub memory_used_gb: f32,
pub memory_available_gb: f32,
pub gpu_layers_offloaded: u32,
pub inference_device: String,
}Expand description
Live system metrics response
Fields§
§cpu_usage_percent: f32§per_core_usage: Vec<f32>§cpu_model_name: String§cpu_frequency_mhz: u64§gpu_available: bool§gpu_name: String§gpu_usage_percent: f32§gpu_vram_total_gb: f32§gpu_vram_used_gb: f32§gpu_temperature_c: f32§memory_total_gb: f32§memory_used_gb: f32§memory_available_gb: f32§gpu_layers_offloaded: u32§inference_device: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for SystemMetricsResponse
impl RefUnwindSafe for SystemMetricsResponse
impl Send for SystemMetricsResponse
impl Sync for SystemMetricsResponse
impl Unpin for SystemMetricsResponse
impl UnsafeUnpin for SystemMetricsResponse
impl UnwindSafe for SystemMetricsResponse
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more