Struct pleingres::Handle[][src]

pub struct Handle<R> { /* fields omitted */ }

A handle to a database connection that has been spawn to an event loop. This is actually a synchronization channel.

Methods

impl<R: Request + HandleRow> Handle<R>
[src]

Send a request to this handle. Methods from the Request and HandleRow traits will be called as needed.

The request will be sent through a futures::mpsc channel, along with a futures::channel::oneshot channel to "wait" the result on.

Trait Implementations

impl<R> Clone for Handle<R>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<R> Send for Handle<R> where
    R: Send

impl<R> Sync for Handle<R> where
    R: Send