pub trait InsertSelectBinding<S: Clone + 'static> {
// Required method
fn bind<'a>(
&'a self,
snapshot: Option<&S>,
consumer: Rc<InsertSelectConsumer<S>>,
destination: Option<ReturningDestination<'a>>,
) -> Result<Rc<dyn QueryRowConsumer + 'a>, SQLError>;
}Expand description
The session owner retains a live or frozen generation for the lifetime of one bound sink.
Required Methods§
fn bind<'a>( &'a self, snapshot: Option<&S>, consumer: Rc<InsertSelectConsumer<S>>, destination: Option<ReturningDestination<'a>>, ) -> Result<Rc<dyn QueryRowConsumer + 'a>, SQLError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".