pub struct EngineBuilder { /* private fields */ }Expand description
Builder for creating Engine instances
Implementations§
Source§impl EngineBuilder
impl EngineBuilder
Sourcepub fn with_config(self, config: EngineConfig) -> Self
pub fn with_config(self, config: EngineConfig) -> Self
Set the engine configuration
Sourcepub fn with_query_parser(self, parser: Arc<dyn QueryParser>) -> Self
pub fn with_query_parser(self, parser: Arc<dyn QueryParser>) -> Self
Set a custom query parser
Sourcepub fn with_query_planner(self, planner: Arc<dyn QueryPlanner>) -> Self
pub fn with_query_planner(self, planner: Arc<dyn QueryPlanner>) -> Self
Set a custom query planner
Sourcepub fn with_query_executor(
self,
executor: Arc<RwLock<dyn QueryExecutor>>,
) -> Self
pub fn with_query_executor( self, executor: Arc<RwLock<dyn QueryExecutor>>, ) -> Self
Set a custom query executor
Sourcepub fn with_dispatcher(self, dispatcher: Arc<RwLock<dyn Dispatcher>>) -> Self
pub fn with_dispatcher(self, dispatcher: Arc<RwLock<dyn Dispatcher>>) -> Self
Set a custom dispatcher
Sourcepub fn build(self) -> NirvResult<Engine>
pub fn build(self) -> NirvResult<Engine>
Build the engine
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EngineBuilder
impl !RefUnwindSafe for EngineBuilder
impl Send for EngineBuilder
impl Sync for EngineBuilder
impl Unpin for EngineBuilder
impl !UnwindSafe for EngineBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more