pub struct PoolCensus {
pub workers_in_pool: usize,
pub workers_serving_activity: usize,
pub compatible_workers: usize,
pub last_compatible_poller_age: Option<Duration>,
}Expand description
What the connected-worker registry holds for one
(namespace, task_queue, activity_type[, node]) address.
Fields§
§workers_in_pool: usizeWorkers connected for (namespace, task_queue), whatever they serve.
workers_serving_activity: usizeOf those, workers advertising this activity type.
compatible_workers: usizeOf those, workers that also satisfy the dispatch’s node pin. Equal to
Self::workers_serving_activity for an unpinned dispatch.
last_compatible_poller_age: Option<Duration>How long ago a compatible worker was last in service, or None when
none has ever been seen for this address in this server’s life.
Zero while a compatible worker is connected right now.
Implementations§
Trait Implementations§
Source§impl Clone for PoolCensus
impl Clone for PoolCensus
Source§fn clone(&self) -> PoolCensus
fn clone(&self) -> PoolCensus
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 moreimpl Copy for PoolCensus
Source§impl Debug for PoolCensus
impl Debug for PoolCensus
Source§impl Default for PoolCensus
impl Default for PoolCensus
Source§fn default() -> PoolCensus
fn default() -> PoolCensus
Returns the “default value” for a type. Read more
impl Eq for PoolCensus
Source§impl PartialEq for PoolCensus
impl PartialEq for PoolCensus
impl StructuralPartialEq for PoolCensus
Auto Trait Implementations§
impl Freeze for PoolCensus
impl RefUnwindSafe for PoolCensus
impl Send for PoolCensus
impl Sync for PoolCensus
impl Unpin for PoolCensus
impl UnsafeUnpin for PoolCensus
impl UnwindSafe for PoolCensus
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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