Lines Matching refs:Send
39 pub struct Shelf(HashMap<TypeId, Box<dyn Any + Send>>);
43 pub fn get_downcast_ref<T: Any + Send>(&self) -> Option<&T> { in get_downcast_ref()
49 pub fn get_downcast_mut<T: Any + Send>(&mut self) -> Option<&mut T> { in get_downcast_mut()
54 pub fn remove_downcast_ref<T: Any + Send>(&mut self) -> Option<T> { in remove_downcast_ref()
59 pub fn put<T: Any + Send>(&mut self, v: T) -> Option<T> { in put()
61 .insert(TypeId::of::<T>(), Box::new(v) as Box<dyn Any + Send>) in put()
67 pub fn get_mut<T: Any + Send + Default>(&mut self) -> &mut T { in get_mut()
70 .or_insert_with(|| Box::new(T::default()) as Box<dyn Any + Send>) in get_mut()
77 pub fn get_or_put_with<T: Any + Send, F>(&mut self, init: F) -> &mut T in get_or_put_with() argument
83 .or_insert_with(|| Box::new(init()) as Box<dyn Any + Send>) in get_or_put_with()
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>>,
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()