This repository has been archived on 2024-07-25. You can view files and clone it, but cannot push or open issues or pull requests.
ood_persistence/src/asyn.rs

15 lines
278 B
Rust
Raw Normal View History

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