pub struct WorkerStatus {
pub cpus_used: CoreUnit,
pub gpus_used: CoreUnit,
pub memory_used: ByteUnit<DefaultFactorOneMegabyte>,
pub disk_used: ByteUnit<DefaultFactorOneMegabyte>,
pub exit_announced_at: i64,
}
Expand description
Current status and resource utilization of a worker
Tracks:
- Currently used resources (CPU, GPU, memory, disk)
- When the worker announced it will exit
Fields§
§cpus_used: CoreUnit
§gpus_used: CoreUnit
§memory_used: ByteUnit<DefaultFactorOneMegabyte>
§disk_used: ByteUnit<DefaultFactorOneMegabyte>
§exit_announced_at: i64
Trait Implementations§
Source§impl Debug for WorkerStatus
impl Debug for WorkerStatus
Source§impl<'de> Deserialize<'de> for WorkerStatus
impl<'de> Deserialize<'de> for WorkerStatus
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
Source§impl From<WorkerStatus> for WorkerStatus
impl From<WorkerStatus> for WorkerStatus
Source§fn from(proto: WorkerStatus) -> Self
fn from(proto: WorkerStatus) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WorkerStatus
impl RefUnwindSafe for WorkerStatus
impl Send for WorkerStatus
impl Sync for WorkerStatus
impl Unpin for WorkerStatus
impl UnwindSafe for WorkerStatus
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request