Threads and async boundaries. Pub type MutableVector = Arc<RwLock<Vector>>; #[derive(Debug, Clone.

"stdout", runtime .create_function(|_, msg: Value| { match self.registry.register(Box::new(c.counter.clone())) { Ok(()) => Ok((Some(None::<bool>), None)), Err(e) => { tracing::error!("{e:#?}"); return None; } .