pub struct BacktestNodeBuilder { /* private fields */ }Expand description
Builder for constructing a BacktestNode with a fluent API.
Engines are initialized separately by BacktestNode::build or BacktestNode::run.
Implementations§
Source§impl BacktestNodeBuilder
impl BacktestNodeBuilder
Sourcepub fn with_catalog_factories(
self,
catalog_factories: CatalogFactoryRegistry,
) -> Self
pub fn with_catalog_factories( self, catalog_factories: CatalogFactoryRegistry, ) -> Self
Replaces the catalog factory registry for instrument and replay data loading.
Use [nautilus_persistence::backend::extend_catalog_factories] to retain built-in backends
alongside external factories. Both oneshot and streaming runs use this registry.
Sourcepub fn build(self) -> Result<BacktestNode>
pub fn build(self) -> Result<BacktestNode>
Validates the run configurations and creates the node without initializing its engines.
§Errors
Returns an error if configs is empty or validation fails.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for BacktestNodeBuilder
impl !Sync for BacktestNodeBuilder
impl !UnwindSafe for BacktestNodeBuilder
impl Freeze for BacktestNodeBuilder
impl Send for BacktestNodeBuilder
impl Unpin for BacktestNodeBuilder
impl UnsafeUnpin for BacktestNodeBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more