pub trait QueryConsumerFactory<'consumer, S: Clone + 'static> {
// Required method
fn bind(
self: Rc<Self>,
generation: Option<&S>,
) -> Result<Rc<dyn QueryRowConsumer + 'consumer>, SQLError>;
// Provided methods
fn uses_directional_scan(&self) -> bool { ... }
fn streams_set_inputs(&self) -> bool { ... }
}Expand description
A row sink chooses its own services for the selected generation; query execution supplies no writable context.
Required Methods§
fn bind( self: Rc<Self>, generation: Option<&S>, ) -> Result<Rc<dyn QueryRowConsumer + 'consumer>, SQLError>
Provided Methods§
fn uses_directional_scan(&self) -> bool
fn streams_set_inputs(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".