pub enum Connection {
PostgreSQL(PooledConnection<PostgresConnectionManager<NoTls>>),
SQLite(PooledConnection<SqliteConnectionManager>),
}Variants§
PostgreSQL(PooledConnection<PostgresConnectionManager<NoTls>>)
SQLite(PooledConnection<SqliteConnectionManager>)
Trait Implementations§
Source§impl<'r> From<Connection> for ConnTrans<'r>
impl<'r> From<Connection> for ConnTrans<'r>
Source§fn from(conn: Connection) -> ConnTrans<'r>
fn from(conn: Connection) -> ConnTrans<'r>
Converts to this type from the input type.
Source§impl<'r> TryFrom<&'r Pool> for Connection
impl<'r> TryFrom<&'r Pool> for Connection
Auto Trait Implementations§
impl !Freeze for Connection
impl !RefUnwindSafe for Connection
impl Send for Connection
impl !Sync for Connection
impl Unpin for Connection
impl !UnwindSafe for Connection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more