Lines Matching refs:Instant
7 use std::time::{Duration, Instant};
15 pub type AtToken = Option<Instant>;
20 delivery_time: Instant,
29 pub fn new_deadline(when: Instant) -> Self { in new_deadline()
38 Self::new_deadline(Instant::now() + dur) in new_timeout()
43 pub fn try_recv(&self) -> Result<Instant, TryRecvError> { in try_recv() argument
50 if Instant::now() < self.delivery_time { in try_recv()
67 pub fn recv(&self, deadline: Option<Instant>) -> Result<Instant, RecvTimeoutError> { in recv() argument
77 let now = Instant::now(); in recv()
106 pub unsafe fn read(&self, token: &mut Token) -> Result<Instant, ()> { in read() argument
119 if Instant::now() < self.delivery_time { in is_empty()
168 fn deadline(&self) -> Option<Instant> { in deadline() argument