pub struct KeyQueueLengthStatus<K>where
K: Ord,{
pub active: bool,
pub waiting: BTreeMap<K, usize>,
}Expand description
Queue length status for keyed queues.
Fields§
§active: boolWhether there is an active job.
waiting: BTreeMap<K, usize>Waiting jobs info per key.
Trait Implementations§
Source§impl<K> Clone for KeyQueueLengthStatus<K>
impl<K> Clone for KeyQueueLengthStatus<K>
Source§impl<K> Debug for KeyQueueLengthStatus<K>
impl<K> Debug for KeyQueueLengthStatus<K>
Source§impl<K> Default for KeyQueueLengthStatus<K>where
K: Ord,
impl<K> Default for KeyQueueLengthStatus<K>where
K: Ord,
Source§impl<'de, K> Deserialize<'de> for KeyQueueLengthStatus<K>where
K: Ord + Deserialize<'de>,
impl<'de, K> Deserialize<'de> for KeyQueueLengthStatus<K>where
K: Ord + Deserialize<'de>,
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
Source§impl<K> PartialEq for KeyQueueLengthStatus<K>
impl<K> PartialEq for KeyQueueLengthStatus<K>
Source§impl<K, D> QueueStatus<KeyedData<K, D>> for KeyQueueLengthStatus<K>
impl<K, D> QueueStatus<KeyedData<K, D>> for KeyQueueLengthStatus<K>
Source§fn report_enqueue(&mut self, input: &KeyedData<K, D>)
fn report_enqueue(&mut self, input: &KeyedData<K, D>)
Report queueing a job.
Source§fn report_start(&mut self, input: &KeyedData<K, D>)
fn report_start(&mut self, input: &KeyedData<K, D>)
Report the start of a new job.
Source§fn report_idle(&mut self)
fn report_idle(&mut self)
Report that there’s nothing left to do.
Source§impl<K> Serialize for KeyQueueLengthStatus<K>
impl<K> Serialize for KeyQueueLengthStatus<K>
impl<K> StructuralPartialEq for KeyQueueLengthStatus<K>
Auto Trait Implementations§
impl<K> Freeze for KeyQueueLengthStatus<K>
impl<K> RefUnwindSafe for KeyQueueLengthStatus<K>
impl<K> Send for KeyQueueLengthStatus<K>
impl<K> Sync for KeyQueueLengthStatus<K>
impl<K> Unpin for KeyQueueLengthStatus<K>
impl<K> UnsafeUnpin for KeyQueueLengthStatus<K>
impl<K> UnwindSafe for KeyQueueLengthStatus<K>
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