diff options
Diffstat (limited to 'src/time/wheel/stack.rs')
-rw-r--r-- | src/time/wheel/stack.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/time/wheel/stack.rs b/src/time/wheel/stack.rs index c87adca..7d32f27 100644 --- a/src/time/wheel/stack.rs +++ b/src/time/wheel/stack.rs @@ -22,6 +22,9 @@ pub(crate) trait Stack: Default { /// Pop an item from the stack fn pop(&mut self, store: &mut Self::Store) -> Option<Self::Owned>; + /// Peek into the stack. + fn peek(&self) -> Option<Self::Owned>; + fn remove(&mut self, item: &Self::Borrowed, store: &mut Self::Store); fn when(item: &Self::Borrowed, store: &Self::Store) -> u64; |