1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use std::sync::{Arc, RwLock}; use crate::prelude::*; use super::ExecutionContext; pub trait ExecutionContextFactory { fn type_name(&self) -> &str; fn create(&self, manifest: Value) -> JuizResult<Arc<RwLock<dyn ExecutionContext>>>; }