pub struct WorkerRecord {
pub id: WorkerId,
pub queue_name: QueueName,
pub version: String,
pub draining: bool,
pub started_at: DateTime<Utc>,
pub heartbeat_at: DateTime<Utc>,
pub expires_at: DateTime<Utc>,
pub capabilities: Vec<(TaskName, HandlerVersion)>,
}Fields§
§id: WorkerId§queue_name: QueueName§version: String§draining: bool§started_at: DateTime<Utc>§heartbeat_at: DateTime<Utc>§expires_at: DateTime<Utc>§capabilities: Vec<(TaskName, HandlerVersion)>Trait Implementations§
Source§impl Clone for WorkerRecord
impl Clone for WorkerRecord
Source§fn clone(&self) -> WorkerRecord
fn clone(&self) -> WorkerRecord
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 WorkerRecord
impl Debug for WorkerRecord
impl Eq for WorkerRecord
Source§impl PartialEq for WorkerRecord
impl PartialEq for WorkerRecord
impl StructuralPartialEq for WorkerRecord
Auto Trait Implementations§
impl Freeze for WorkerRecord
impl RefUnwindSafe for WorkerRecord
impl Send for WorkerRecord
impl Sync for WorkerRecord
impl Unpin for WorkerRecord
impl UnsafeUnpin for WorkerRecord
impl UnwindSafe for WorkerRecord
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