Skip to main content

InterpreterFactory

Trait InterpreterFactory 

Source
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§

Source

fn supports(&self, dialect: &DialectBinding) -> SupportLevel

Report support for a dialect binding.

Source

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".

Implementors§