1 2 3 4 5 6 7 8 9
use crate::routing::Route; use std::sync::{Arc, Mutex}; #[derive(Clone)] pub struct RouteDef { pub name: String, pub path: String, pub route: Arc<Mutex<dyn Route + Send + Sync>>, }