pub(super) trait RecordParser: Send {
// Required methods
fn feed(&mut self, data: &[u8]) -> PgWireResult<Vec<Row>>;
fn finish(&mut self) -> PgWireResult<Vec<Row>>;
}Expand description
Incremental parser of one COPY FROM STDIN stream.
The wire protocol delivers the payload as an arbitrary sequence of
CopyData chunks; implementations must keep state across [feed]
calls because records (and even single fields) may span chunk
boundaries. [finish] is called at CopyDone; a final record without
a trailing record separator is accepted.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".