Struct msql_srv::RowWriter [] [src]

#[must_use]
pub struct RowWriter<'a, W: Write + 'a> { /* fields omitted */ }

Convenience type for sending rows of a resultset to a client.

This type may be dropped without calling write_row or finish. However, in this case, the program may panic if an I/O error occurs when sending the end-of-records marker to the client. To avoid this, call finish explicitly.

Methods

impl<'a, W> RowWriter<'a, W> where
    W: Write + 'a, 
[src]

[src]

Write a single row as a part of this resultset.

Note that the row must conform to the column specification provided to QueryResultWriter::start. If it does not, this method will return an error indicating that an invalid value type or specification was provided.

impl<'a, W: Write + 'a> RowWriter<'a, W>
[src]

[src]

End this resultset response, and indicate to the client that no more rows are coming.

Trait Implementations

impl<'a, W: Write + 'a> Drop for RowWriter<'a, W>
[src]

[src]

Executes the destructor for this type. Read more