pub struct ProcessCoalescingState {
pub active_leaders: usize,
pub active_followers: usize,
pub oldest_leader_age_ms: Option<u64>,
}Expand description
Exact process-scoped single-flight state of one instance.
Fields§
§active_leaders: usizeExecutions currently in flight on this instance, one per logical key.
active_followers: usizeCallers currently waiting on those executions instead of running their own.
oldest_leader_age_ms: Option<u64>Milliseconds since the oldest in-flight execution started; None
when nothing is in flight.
Trait Implementations§
Source§impl Clone for ProcessCoalescingState
impl Clone for ProcessCoalescingState
Source§fn clone(&self) -> ProcessCoalescingState
fn clone(&self) -> ProcessCoalescingState
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 ProcessCoalescingState
impl Debug for ProcessCoalescingState
Source§impl Default for ProcessCoalescingState
impl Default for ProcessCoalescingState
Source§fn default() -> ProcessCoalescingState
fn default() -> ProcessCoalescingState
Returns the “default value” for a type. Read more
impl Eq for ProcessCoalescingState
Source§impl PartialEq for ProcessCoalescingState
impl PartialEq for ProcessCoalescingState
Source§fn eq(&self, other: &ProcessCoalescingState) -> bool
fn eq(&self, other: &ProcessCoalescingState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProcessCoalescingState
Auto Trait Implementations§
impl Freeze for ProcessCoalescingState
impl RefUnwindSafe for ProcessCoalescingState
impl Send for ProcessCoalescingState
impl Sync for ProcessCoalescingState
impl Unpin for ProcessCoalescingState
impl UnsafeUnpin for ProcessCoalescingState
impl UnwindSafe for ProcessCoalescingState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.