Trait s2n_netbench::timer::Timer

source ·
pub trait Timer {
    // Required methods
    fn now(&self) -> Timestamp;
    fn poll(&mut self, target: Timestamp, cx: &mut Context<'_>) -> Poll<()>;
}

Required Methods§

source

fn now(&self) -> Timestamp

source

fn poll(&mut self, target: Timestamp, cx: &mut Context<'_>) -> Poll<()>

Implementors§