pub trait AsClient {
// Required methods
fn as_client(&self) -> &Client;
fn as_client_mut(&mut self) -> &mut Client;
}Expand description
The clients a Client can wrap: tokio-postgres’s own, and with the
deadpool-postgres feature, a client taken from a deadpool pool.
Required Methods§
Sourcefn as_client_mut(&mut self) -> &mut Client
fn as_client_mut(&mut self) -> &mut Client
tokio-postgres’s client, mutably, for starting transactions.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".