pub struct RunningWorker {
pub id: String,
pub queue: String,
pub backend: String,
pub started_at: u64,
pub last_heartbeat: u64,
pub layers: String,
}Expand description
Represents a worker currently registered with the backend
Fields§
§id: StringUnique identifier for the worker
queue: StringQueue the worker is processing tasks from
backend: StringBackend of the worker
started_at: u64Timestamp when the worker was started
last_heartbeat: u64Timestamp of the last heartbeat received from the worker
layers: StringLayers the worker is associated with
Trait Implementations§
Source§impl Clone for RunningWorker
impl Clone for RunningWorker
Source§fn clone(&self) -> RunningWorker
fn clone(&self) -> RunningWorker
Returns a duplicate of the value. Read more
1.0.0 · 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 RunningWorker
impl Debug for RunningWorker
Source§impl<'de> Deserialize<'de> for RunningWorker
impl<'de> Deserialize<'de> for RunningWorker
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 RunningWorker
impl RefUnwindSafe for RunningWorker
impl Send for RunningWorker
impl Sync for RunningWorker
impl Unpin for RunningWorker
impl UnwindSafe for RunningWorker
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