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§impl Debug for RunningWorker
impl Debug for RunningWorker
Source§impl<'de> Deserialize<'de> for RunningWorker
Available on crate feature serde only.
impl<'de> Deserialize<'de> for RunningWorker
Available on crate feature
serde only.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 UnsafeUnpin 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