Lines Matching +full:event +full:- +full:driven
2 // Use of this source code is governed by a BSD-style license that can be
5 // Utility file to provide a fake clock object representing current time, and a timer driven by
12 use crate::Event;
17 pub fn new() -> Self { in new()
21 pub fn now(&self) -> Instant { in now()
32 deadlines: Vec<(u64, Event)>,
36 pub fn new() -> Self { in new()
45 pub fn now(&self) -> Instant { in now()
50 pub fn nanos(&self) -> u64 { in nanos()
54 /// Register the event descriptor for a notification when self's time is |deadline_ns|.
56 pub fn add_event(&mut self, deadline_ns: u64, descriptor: Event) { in add_event() argument
77 fn default() -> Self { in default()