Lines Matching refs:Shelf
39 pub struct Shelf(HashMap<TypeId, Box<dyn Any + Send>>); struct
41 impl Shelf { impl
93 hi_prio_req: VecDeque<Box<dyn FnOnce(&mut Shelf) + Send>>,
94 lo_prio_req: VecDeque<Box<dyn FnOnce(&mut Shelf) + Send>>,
95 idle_fns: Vec<Arc<dyn Fn(&mut Shelf) + Send + Sync>>,
98 shelf: Option<Shelf>,
140 F: for<'r> FnOnce(&'r mut Shelf) + Send + 'static, in queue_hi()
151 F: FnOnce(&mut Shelf) + Send + 'static, in queue_lo()
160 F: Fn(&mut Shelf) + Send + Sync + 'static, in add_idle()
169 F: for<'r> FnOnce(&'r mut Shelf) + Send + 'static, in queue()
199 QueuedFn(Box<dyn FnOnce(&mut Shelf) + Send>), in spawn_thread()
200 IdleFns(Vec<Arc<dyn Fn(&mut Shelf) + Send + Sync>>), in spawn_thread()
262 use super::{AsyncTask, Shelf};
271 let mut shelf = Shelf::default(); in test_shelf()