14 lines
244 B
Rust
14 lines
244 B
Rust
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;
|
|
}
|