use crate::{status::StatusManager, storage::Storage}; #[derive(Debug)] pub struct Config where S: Storage + Sync + Send, { pub storage: S, pub status: StatusManager, } impl From for Config where S: Storage + Sync + Send, { fn from(storage: S) -> Self { Self { storage, status: StatusManager::default(), } } }