[][src]Trait pleingres::HandleRow

pub trait HandleRow {
    fn row(&mut self, row: Row) -> bool { ... }
fn complete<'a>(&mut self, modified: u32) { ... }
fn ready_for_query<'a>(&mut self) { ... }
fn err(&mut self, err: &str) { ... } }

Requests that can handle a resulting row.

Provided methods

fn row(&mut self, row: Row) -> bool

Called on each row.

fn complete<'a>(&mut self, modified: u32)

Called at the end of the request, with the number of modified rows.

fn ready_for_query<'a>(&mut self)

Called when the server is ready for the next request.

fn err(&mut self, err: &str)

This function gets called when the server returns an error.

Loading content...

Implementations on Foreign Types

impl HandleRow for String[src]

fn row(&mut self, row: Row) -> bool[src]

fn complete<'a>(&mut self, modified: u32)[src]

fn ready_for_query<'a>(&mut self)[src]

fn err(&mut self, err: &str)[src]

Loading content...

Implementors

impl<F: Fn(Row) -> bool> HandleRow for F[src]

fn complete<'a>(&mut self, modified: u32)[src]

fn ready_for_query<'a>(&mut self)[src]

fn err(&mut self, err: &str)[src]

Loading content...