salsa/components/salsa-2022/src/jar.rs

15 lines
307 B
Rust
Raw Normal View History

2022-08-01 05:32:47 +00:00
use crate::{
storage::{HasJar, JarFromJars},
Database, DbWithJar,
};
use super::routes::Routes;
2022-08-01 05:32:47 +00:00
pub trait Jar<'db>: Sized {
type DynDb: ?Sized + HasJar<Self> + Database + 'db;
fn create_jar<DB>(routes: &mut Routes<DB>) -> Self
2022-08-01 05:32:47 +00:00
where
DB: JarFromJars<Self> + DbWithJar<Self>;
}