pub struct Connection { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for Connection
impl Clone for Connection
Source§fn clone(&self) -> Connection
fn clone(&self) -> Connection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Connection
impl Debug for Connection
Source§impl Queryer for Connection
impl Queryer for Connection
async fn query_raw( &self, sql: &str, params: &[&dyn ToSql], ) -> Result<Vec<Row>, PgError>
async fn execute_raw( &self, sql: &str, params: &[&dyn ToSql], ) -> Result<u64, PgError>
async fn query<T: FromSql>( &self, sql: &str, params: &[&dyn ToSql], ) -> Result<Vec<Vec<T>>, PgError>
async fn query_as<T: FromRow>( &self, sql: &str, params: &[&dyn ToSql], ) -> Result<Vec<T>, PgError>
async fn query_one_as<T: FromRow>( &self, sql: &str, params: &[&dyn ToSql], ) -> Result<T, PgError>
async fn query_first_as<T: FromRow>( &self, sql: &str, params: &[&dyn ToSql], ) -> Result<Option<T>, PgError>
async fn query_first<T: FromSql>( &self, sql: &str, params: &[&dyn ToSql], ) -> Result<Option<T>, PgError>
Auto Trait Implementations§
impl !RefUnwindSafe for Connection
impl !UnwindSafe for Connection
impl Freeze for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnsafeUnpin 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