#[non_exhaustive]pub struct WorkerInfo {
pub worker_id: WorkerId,
pub worker_instance_id: WorkerInstanceId,
pub namespace: Namespace,
pub lanes: BTreeSet<LaneId>,
pub capabilities: BTreeSet<String>,
pub last_heartbeat_ms: TimestampMs,
pub liveness_ttl_ms: u64,
pub registered_at_ms: TimestampMs,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.worker_id: WorkerId§worker_instance_id: WorkerInstanceId§namespace: Namespace§lanes: BTreeSet<LaneId>§capabilities: BTreeSet<String>§last_heartbeat_ms: TimestampMs§liveness_ttl_ms: u64§registered_at_ms: TimestampMsImplementations§
Source§impl WorkerInfo
impl WorkerInfo
pub fn new( worker_id: WorkerId, worker_instance_id: WorkerInstanceId, namespace: Namespace, lanes: BTreeSet<LaneId>, capabilities: BTreeSet<String>, last_heartbeat_ms: TimestampMs, liveness_ttl_ms: u64, registered_at_ms: TimestampMs, ) -> Self
Trait Implementations§
Source§impl Clone for WorkerInfo
impl Clone for WorkerInfo
Source§fn clone(&self) -> WorkerInfo
fn clone(&self) -> WorkerInfo
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 WorkerInfo
impl Debug for WorkerInfo
Source§impl PartialEq for WorkerInfo
impl PartialEq for WorkerInfo
impl Eq for WorkerInfo
impl StructuralPartialEq for WorkerInfo
Auto Trait Implementations§
impl Freeze for WorkerInfo
impl RefUnwindSafe for WorkerInfo
impl Send for WorkerInfo
impl Sync for WorkerInfo
impl Unpin for WorkerInfo
impl UnsafeUnpin for WorkerInfo
impl UnwindSafe for WorkerInfo
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