pub trait InterpreterFactory: Send + Sync {
// Required methods
fn supports(&self, dialect: &DialectBinding) -> SupportLevel;
fn start(
&self,
request: StartInterpretation,
) -> Result<Interpretation, InterpreterError>;
}Expand description
Creates Interpretation instances for supported dialects.
Required Methods§
Sourcefn supports(&self, dialect: &DialectBinding) -> SupportLevel
fn supports(&self, dialect: &DialectBinding) -> SupportLevel
Report support for a dialect binding.
Sourcefn start(
&self,
request: StartInterpretation,
) -> Result<Interpretation, InterpreterError>
fn start( &self, request: StartInterpretation, ) -> Result<Interpretation, InterpreterError>
Start an interpretation. Returns immediately with live handles.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".