[go: up one dir, main page]

Trait quinn::AsyncTimer

source ·
pub trait AsyncTimer: Send + Debug + 'static {
    fn reset(self: Pin<&mut Self>, i: Instant);
    fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<()>;
}
Expand description

Abstract implementation of an async timer for runtime independence

Required Methods§

Update the timer to expire at i

Check whether the timer has expired, and register to be woken if not

Implementations on Foreign Types§

Implementors§