pub struct Exact<K: Key, P: Copy + Ord> { /* private fields */ }Expand description
Specialized one-action book with the minimum resident footprint.
Implementations§
Trait Implementations§
Source§impl<K: Key, P: Copy + Ord> Book<K, P> for Exact<K, P>
impl<K: Key, P: Copy + Ord> Book<K, P> for Exact<K, P>
fn schedule(&mut self, key: K, item: Scheduled<P>) -> Result<(), Error<K>>
fn cancel(&mut self, key: K) -> Mutation
fn cancel_one(&mut self, key: K, action: Action) -> Mutation
fn peek(&self) -> Option<(K, Scheduled<P>)>
fn poll_due(&mut self, now: P) -> Poll<Expired<K, P>>
fn len(&self) -> usize
Source§fn pop_due(&mut self, now: P) -> Option<Expired<K, P, W>>
fn pop_due(&mut self, now: P) -> Option<Expired<K, P, W>>
Drains lazy renewals until an expiry or an idle book is reached.
This may visit every resident entry; event-loop turns use
poll_due to
bound renewal work before yielding to other connections.fn is_empty(&self) -> bool
Auto Trait Implementations§
impl<K, P> !Send for Exact<K, P>
impl<K, P> !Sync for Exact<K, P>
impl<K, P> Forget for Exact<K, P>
impl<K, P> Freeze for Exact<K, P>
impl<K, P> RefUnwindSafe for Exact<K, P>
impl<K, P> Unpin for Exact<K, P>
impl<K, P> UnsafeUnpin for Exact<K, P>
impl<K, P> UnwindSafe for Exact<K, P>
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