pub struct WorkerResourceState {
pub cpu_percent: Option<f64>,
pub memory_used_gb: Option<f64>,
pub memory_total_gb: Option<f64>,
pub load_average: Option<f64>,
pub disk_percent: Option<f64>,
}Expand description
Worker resource state at the time of error.
Fields§
§cpu_percent: Option<f64>CPU usage percentage (0-100).
memory_used_gb: Option<f64>Memory used in GB.
memory_total_gb: Option<f64>Total memory in GB.
load_average: Option<f64>System load average (1 minute).
disk_percent: Option<f64>Disk usage percentage.
Implementations§
Trait Implementations§
Source§impl Clone for WorkerResourceState
impl Clone for WorkerResourceState
Source§fn clone(&self) -> WorkerResourceState
fn clone(&self) -> WorkerResourceState
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 WorkerResourceState
impl Debug for WorkerResourceState
Source§impl Default for WorkerResourceState
impl Default for WorkerResourceState
Source§fn default() -> WorkerResourceState
fn default() -> WorkerResourceState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WorkerResourceState
impl<'de> Deserialize<'de> for WorkerResourceState
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
Auto Trait Implementations§
impl Freeze for WorkerResourceState
impl RefUnwindSafe for WorkerResourceState
impl Send for WorkerResourceState
impl Sync for WorkerResourceState
impl Unpin for WorkerResourceState
impl UnsafeUnpin for WorkerResourceState
impl UnwindSafe for WorkerResourceState
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