Struct diesel_connection::ConnectionPool
source · pub struct ConnectionPool;
Expand description
Static connection pool type
Trait Implementations§
source§impl ConnectionInfo for ConnectionPool
impl ConnectionInfo for ConnectionPool
type Connection = PgConnection
fn create_pool( ) -> Result<Pool<ConnectionManager<Self::Connection>>, ParseError>
source§impl PoolContext for ConnectionPool
impl PoolContext for ConnectionPool
fn pool() -> &'static Pool<ConnectionManager<Self::Connection>>
fn get_connection( ) -> Result<PooledConnection<ConnectionManager<Self::Connection>>, PoolError>
source§impl ServiceURL for ConnectionPool
impl ServiceURL for ConnectionPool
fn service_url() -> Result<Url, ParseError>
Auto Trait Implementations§
impl Freeze for ConnectionPool
impl RefUnwindSafe for ConnectionPool
impl Send for ConnectionPool
impl Sync for ConnectionPool
impl Unpin for ConnectionPool
impl UnwindSafe for ConnectionPool
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
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read more