time: add DelayQueue::peek (#5569)

Signed-off-by: Jens Reidel <[email protected]>
This commit is contained in:
Jens Reidel
2023-04-16 09:43:03 +02:00
committed by GitHub
parent 3b16564ce0
commit effead29d1
5 changed files with 94 additions and 0 deletions
+4
View File
@@ -206,6 +206,10 @@ impl<T: Stack> Level<T> {
ret
}
pub(crate) fn peek_entry_slot(&self, slot: usize) -> Option<T::Owned> {
self.slot[slot].peek()
}
}
impl<T> fmt::Debug for Level<T> {