Lines Matching refs:Instant
6 use std::time::{Duration, Instant};
15 pub type TickToken = Option<Instant>;
20 delivery_time: AtomicCell<Instant>,
31 delivery_time: AtomicCell::new(Instant::now() + dur), in new()
38 pub fn try_recv(&self) -> Result<Instant, TryRecvError> { in try_recv() argument
40 let now = Instant::now(); in try_recv()
59 pub fn recv(&self, deadline: Option<Instant>) -> Result<Instant, RecvTimeoutError> { in recv() argument
62 let now = Instant::now(); in recv()
88 pub unsafe fn read(&self, token: &mut Token) -> Result<Instant, ()> { in read() argument
95 Instant::now() < self.delivery_time.load() in is_empty()
138 fn deadline(&self) -> Option<Instant> { in deadline() argument