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]
pub fn send_request<F>(&self, r: F) -> SendRequest<R> where
R: From<F>,
[src]
R: From<F>,
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::sync::oneshot
channel to "wait" the
result on.