pub trait ConstantValueStorage:
Debug
+ Send
+ Sync {
// Required method
fn retain(&self, value: Value) -> Result<RetainedConstantValue, SQLError>;
// Provided method
fn retain_produced(
&self,
value: Produced<Value>,
control: &ProductionControl<'_>,
) -> Result<RetainedConstantValue, SQLError> { ... }
}Expand description
Planner supplies a successfully evaluated constant; execution supplies its bounded storage implementation.
Required Methods§
Provided Methods§
Sourcefn retain_produced(
&self,
value: Produced<Value>,
control: &ProductionControl<'_>,
) -> Result<RetainedConstantValue, SQLError>
fn retain_produced( &self, value: Produced<Value>, control: &ProductionControl<'_>, ) -> Result<RetainedConstantValue, SQLError>
Transfer an evaluated owner through the storage boundary. Native stores override this callback to admit encoding workspace and enforce cancellation inside atomic publication; the default adapts an external storage implementation.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".