pub trait Executor: Unpin {
type Transport: PgTransport;
type Future: Future<Output = Result<Self::Transport>> + Unpin;
// Required method
fn connection(self) -> Self::Future;
}Expand description
A type that can returns a PgTransport.
Required Associated Types§
Sourcetype Transport: PgTransport
type Transport: PgTransport
The returned transport.
Required Methods§
Sourcefn connection(self) -> Self::Future
fn connection(self) -> Self::Future
Acquire the transport.