pub trait QueryRowConsumer {
// Required methods
fn begin(
&self,
columns: &[String],
schema: &RowSchema,
) -> Result<(), SQLError>;
fn consume(
&self,
row: OwnedPhysicalRow,
) -> Result<QueryConsumerControl, SQLError>;
// Provided methods
fn uses_directional_scan(&self) -> bool { ... }
fn directional_scan_prepared(
&self,
_support: BackwardScanSupport,
) -> Result<(), SQLError> { ... }
fn scan_direction(&self) -> PhysicalScanDirection { ... }
fn direction_exhausted(&self) -> Result<QueryConsumerControl, SQLError> { ... }
fn rewound(&self) -> Result<QueryConsumerControl, SQLError> { ... }
}Required Methods§
fn begin(&self, columns: &[String], schema: &RowSchema) -> Result<(), SQLError>
fn consume( &self, row: OwnedPhysicalRow, ) -> Result<QueryConsumerControl, SQLError>
Provided Methods§
fn uses_directional_scan(&self) -> bool
fn directional_scan_prepared( &self, _support: BackwardScanSupport, ) -> Result<(), SQLError>
fn scan_direction(&self) -> PhysicalScanDirection
fn direction_exhausted(&self) -> Result<QueryConsumerControl, SQLError>
fn rewound(&self) -> Result<QueryConsumerControl, SQLError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".