Executor

Trait Executor 

Source
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§

Source

type Transport: PgTransport

The returned transport.

Source

type Future: Future<Output = Result<Self::Transport>> + Unpin

Future that resolve to Executor::Transport.

Required Methods§

Source

fn connection(self) -> Self::Future

Acquire the transport.

Implementations on Foreign Types§

Source§

impl<T: PgTransport> Executor for &mut T

Implementors§