ood_persistence/src/syn.rs

14 lines
244 B
Rust
Raw Normal View History

2021-10-12 18:14:02 +03:00
use crate::error;
pub trait PersistencePool {
type Conn: ConnectionClient;
fn get_connection(&self) -> error::Result<Self::Conn>;
}
pub trait ConnectionClient {
type InnerConn;
fn inner(&mut self) -> &mut Self::InnerConn;
}