pub struct KeyQueueDisplayStatus<K>where
K: Ord,{
pub active: Option<String>,
pub waiting: BTreeMap<K, VecDeque<String>>,
}Expand description
Queue display status for keyed queues.
Fields§
§active: Option<String>Active job info if there is any.
waiting: BTreeMap<K, VecDeque<String>>Waiting jobs info per key.
Trait Implementations§
Source§impl<K> Clone for KeyQueueDisplayStatus<K>
impl<K> Clone for KeyQueueDisplayStatus<K>
Source§impl<K> Debug for KeyQueueDisplayStatus<K>
impl<K> Debug for KeyQueueDisplayStatus<K>
Source§impl<K> Default for KeyQueueDisplayStatus<K>
impl<K> Default for KeyQueueDisplayStatus<K>
Source§impl<'de, K> Deserialize<'de> for KeyQueueDisplayStatus<K>where
K: Ord + Deserialize<'de>,
impl<'de, K> Deserialize<'de> for KeyQueueDisplayStatus<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 KeyQueueDisplayStatus<K>
impl<K> PartialEq for KeyQueueDisplayStatus<K>
Source§impl<K, D> QueueStatus<KeyedData<K, D>> for KeyQueueDisplayStatus<K>
impl<K, D> QueueStatus<KeyedData<K, D>> for KeyQueueDisplayStatus<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 KeyQueueDisplayStatus<K>
impl<K> Serialize for KeyQueueDisplayStatus<K>
impl<K> StructuralPartialEq for KeyQueueDisplayStatus<K>
Auto Trait Implementations§
impl<K> Freeze for KeyQueueDisplayStatus<K>
impl<K> RefUnwindSafe for KeyQueueDisplayStatus<K>
impl<K> Send for KeyQueueDisplayStatus<K>
impl<K> Sync for KeyQueueDisplayStatus<K>
impl<K> Unpin for KeyQueueDisplayStatus<K>
impl<K> UnsafeUnpin for KeyQueueDisplayStatus<K>
impl<K> UnwindSafe for KeyQueueDisplayStatus<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