pub struct LiveDataEngineConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> LiveDataEngineConfigBuilder<S>
impl<S: State> LiveDataEngineConfigBuilder<S>
Sourcepub fn build(self) -> LiveDataEngineConfigwhere
S: IsComplete,
pub fn build(self) -> LiveDataEngineConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn time_bars_build_with_no_updates(
self,
value: bool,
) -> LiveDataEngineConfigBuilder<SetTimeBarsBuildWithNoUpdates<S>>where
S::TimeBarsBuildWithNoUpdates: IsUnset,
pub fn time_bars_build_with_no_updates(
self,
value: bool,
) -> LiveDataEngineConfigBuilder<SetTimeBarsBuildWithNoUpdates<S>>where
S::TimeBarsBuildWithNoUpdates: IsUnset,
Sourcepub fn maybe_time_bars_build_with_no_updates(
self,
value: Option<bool>,
) -> LiveDataEngineConfigBuilder<SetTimeBarsBuildWithNoUpdates<S>>where
S::TimeBarsBuildWithNoUpdates: IsUnset,
pub fn maybe_time_bars_build_with_no_updates(
self,
value: Option<bool>,
) -> LiveDataEngineConfigBuilder<SetTimeBarsBuildWithNoUpdates<S>>where
S::TimeBarsBuildWithNoUpdates: IsUnset,
Sourcepub fn time_bars_timestamp_on_close(
self,
value: bool,
) -> LiveDataEngineConfigBuilder<SetTimeBarsTimestampOnClose<S>>where
S::TimeBarsTimestampOnClose: IsUnset,
pub fn time_bars_timestamp_on_close(
self,
value: bool,
) -> LiveDataEngineConfigBuilder<SetTimeBarsTimestampOnClose<S>>where
S::TimeBarsTimestampOnClose: IsUnset,
Sourcepub fn maybe_time_bars_timestamp_on_close(
self,
value: Option<bool>,
) -> LiveDataEngineConfigBuilder<SetTimeBarsTimestampOnClose<S>>where
S::TimeBarsTimestampOnClose: IsUnset,
pub fn maybe_time_bars_timestamp_on_close(
self,
value: Option<bool>,
) -> LiveDataEngineConfigBuilder<SetTimeBarsTimestampOnClose<S>>where
S::TimeBarsTimestampOnClose: IsUnset,
Sourcepub fn time_bars_skip_first_non_full_bar(
self,
value: bool,
) -> LiveDataEngineConfigBuilder<SetTimeBarsSkipFirstNonFullBar<S>>where
S::TimeBarsSkipFirstNonFullBar: IsUnset,
pub fn time_bars_skip_first_non_full_bar(
self,
value: bool,
) -> LiveDataEngineConfigBuilder<SetTimeBarsSkipFirstNonFullBar<S>>where
S::TimeBarsSkipFirstNonFullBar: IsUnset,
Sourcepub fn maybe_time_bars_skip_first_non_full_bar(
self,
value: Option<bool>,
) -> LiveDataEngineConfigBuilder<SetTimeBarsSkipFirstNonFullBar<S>>where
S::TimeBarsSkipFirstNonFullBar: IsUnset,
pub fn maybe_time_bars_skip_first_non_full_bar(
self,
value: Option<bool>,
) -> LiveDataEngineConfigBuilder<SetTimeBarsSkipFirstNonFullBar<S>>where
S::TimeBarsSkipFirstNonFullBar: IsUnset,
Sourcepub fn time_bars_interval_type(
self,
value: BarIntervalType,
) -> LiveDataEngineConfigBuilder<SetTimeBarsIntervalType<S>>where
S::TimeBarsIntervalType: IsUnset,
pub fn time_bars_interval_type(
self,
value: BarIntervalType,
) -> LiveDataEngineConfigBuilder<SetTimeBarsIntervalType<S>>where
S::TimeBarsIntervalType: IsUnset,
Sourcepub fn maybe_time_bars_interval_type(
self,
value: Option<BarIntervalType>,
) -> LiveDataEngineConfigBuilder<SetTimeBarsIntervalType<S>>where
S::TimeBarsIntervalType: IsUnset,
pub fn maybe_time_bars_interval_type(
self,
value: Option<BarIntervalType>,
) -> LiveDataEngineConfigBuilder<SetTimeBarsIntervalType<S>>where
S::TimeBarsIntervalType: IsUnset,
Sourcepub fn time_bars_build_delay(
self,
value: u64,
) -> LiveDataEngineConfigBuilder<SetTimeBarsBuildDelay<S>>where
S::TimeBarsBuildDelay: IsUnset,
pub fn time_bars_build_delay(
self,
value: u64,
) -> LiveDataEngineConfigBuilder<SetTimeBarsBuildDelay<S>>where
S::TimeBarsBuildDelay: IsUnset,
Sourcepub fn maybe_time_bars_build_delay(
self,
value: Option<u64>,
) -> LiveDataEngineConfigBuilder<SetTimeBarsBuildDelay<S>>where
S::TimeBarsBuildDelay: IsUnset,
pub fn maybe_time_bars_build_delay(
self,
value: Option<u64>,
) -> LiveDataEngineConfigBuilder<SetTimeBarsBuildDelay<S>>where
S::TimeBarsBuildDelay: IsUnset,
Sourcepub fn time_bars_origins(
self,
value: HashMap<String, u64>,
) -> LiveDataEngineConfigBuilder<SetTimeBarsOrigins<S>>where
S::TimeBarsOrigins: IsUnset,
pub fn time_bars_origins(
self,
value: HashMap<String, u64>,
) -> LiveDataEngineConfigBuilder<SetTimeBarsOrigins<S>>where
S::TimeBarsOrigins: IsUnset,
Sourcepub fn maybe_time_bars_origins(
self,
value: Option<HashMap<String, u64>>,
) -> LiveDataEngineConfigBuilder<SetTimeBarsOrigins<S>>where
S::TimeBarsOrigins: IsUnset,
pub fn maybe_time_bars_origins(
self,
value: Option<HashMap<String, u64>>,
) -> LiveDataEngineConfigBuilder<SetTimeBarsOrigins<S>>where
S::TimeBarsOrigins: IsUnset,
Sourcepub fn validate_data_sequence(
self,
value: bool,
) -> LiveDataEngineConfigBuilder<SetValidateDataSequence<S>>where
S::ValidateDataSequence: IsUnset,
pub fn validate_data_sequence(
self,
value: bool,
) -> LiveDataEngineConfigBuilder<SetValidateDataSequence<S>>where
S::ValidateDataSequence: IsUnset,
Sourcepub fn maybe_validate_data_sequence(
self,
value: Option<bool>,
) -> LiveDataEngineConfigBuilder<SetValidateDataSequence<S>>where
S::ValidateDataSequence: IsUnset,
pub fn maybe_validate_data_sequence(
self,
value: Option<bool>,
) -> LiveDataEngineConfigBuilder<SetValidateDataSequence<S>>where
S::ValidateDataSequence: IsUnset,
Sourcepub fn buffer_deltas(
self,
value: bool,
) -> LiveDataEngineConfigBuilder<SetBufferDeltas<S>>where
S::BufferDeltas: IsUnset,
pub fn buffer_deltas(
self,
value: bool,
) -> LiveDataEngineConfigBuilder<SetBufferDeltas<S>>where
S::BufferDeltas: IsUnset,
Sourcepub fn maybe_buffer_deltas(
self,
value: Option<bool>,
) -> LiveDataEngineConfigBuilder<SetBufferDeltas<S>>where
S::BufferDeltas: IsUnset,
pub fn maybe_buffer_deltas(
self,
value: Option<bool>,
) -> LiveDataEngineConfigBuilder<SetBufferDeltas<S>>where
S::BufferDeltas: IsUnset,
Sourcepub fn emit_quotes_from_book(
self,
value: bool,
) -> LiveDataEngineConfigBuilder<SetEmitQuotesFromBook<S>>where
S::EmitQuotesFromBook: IsUnset,
pub fn emit_quotes_from_book(
self,
value: bool,
) -> LiveDataEngineConfigBuilder<SetEmitQuotesFromBook<S>>where
S::EmitQuotesFromBook: IsUnset,
Sourcepub fn maybe_emit_quotes_from_book(
self,
value: Option<bool>,
) -> LiveDataEngineConfigBuilder<SetEmitQuotesFromBook<S>>where
S::EmitQuotesFromBook: IsUnset,
pub fn maybe_emit_quotes_from_book(
self,
value: Option<bool>,
) -> LiveDataEngineConfigBuilder<SetEmitQuotesFromBook<S>>where
S::EmitQuotesFromBook: IsUnset,
Sourcepub fn emit_quotes_from_book_depths(
self,
value: bool,
) -> LiveDataEngineConfigBuilder<SetEmitQuotesFromBookDepths<S>>where
S::EmitQuotesFromBookDepths: IsUnset,
pub fn emit_quotes_from_book_depths(
self,
value: bool,
) -> LiveDataEngineConfigBuilder<SetEmitQuotesFromBookDepths<S>>where
S::EmitQuotesFromBookDepths: IsUnset,
Sourcepub fn maybe_emit_quotes_from_book_depths(
self,
value: Option<bool>,
) -> LiveDataEngineConfigBuilder<SetEmitQuotesFromBookDepths<S>>where
S::EmitQuotesFromBookDepths: IsUnset,
pub fn maybe_emit_quotes_from_book_depths(
self,
value: Option<bool>,
) -> LiveDataEngineConfigBuilder<SetEmitQuotesFromBookDepths<S>>where
S::EmitQuotesFromBookDepths: IsUnset,
Sourcepub fn external_clients(
self,
value: Vec<ClientId>,
) -> LiveDataEngineConfigBuilder<SetExternalClients<S>>where
S::ExternalClients: IsUnset,
pub fn external_clients(
self,
value: Vec<ClientId>,
) -> LiveDataEngineConfigBuilder<SetExternalClients<S>>where
S::ExternalClients: IsUnset,
Sourcepub fn maybe_external_clients(
self,
value: Option<Vec<ClientId>>,
) -> LiveDataEngineConfigBuilder<SetExternalClients<S>>where
S::ExternalClients: IsUnset,
pub fn maybe_external_clients(
self,
value: Option<Vec<ClientId>>,
) -> LiveDataEngineConfigBuilder<SetExternalClients<S>>where
S::ExternalClients: IsUnset,
Sourcepub fn debug(self, value: bool) -> LiveDataEngineConfigBuilder<SetDebug<S>>where
S::Debug: IsUnset,
pub fn debug(self, value: bool) -> LiveDataEngineConfigBuilder<SetDebug<S>>where
S::Debug: IsUnset,
Sourcepub fn maybe_debug(
self,
value: Option<bool>,
) -> LiveDataEngineConfigBuilder<SetDebug<S>>where
S::Debug: IsUnset,
pub fn maybe_debug(
self,
value: Option<bool>,
) -> LiveDataEngineConfigBuilder<SetDebug<S>>where
S::Debug: IsUnset,
Sourcepub fn graceful_shutdown_on_error(
self,
value: bool,
) -> LiveDataEngineConfigBuilder<SetGracefulShutdownOnError<S>>where
S::GracefulShutdownOnError: IsUnset,
pub fn graceful_shutdown_on_error(
self,
value: bool,
) -> LiveDataEngineConfigBuilder<SetGracefulShutdownOnError<S>>where
S::GracefulShutdownOnError: IsUnset,
Sourcepub fn maybe_graceful_shutdown_on_error(
self,
value: Option<bool>,
) -> LiveDataEngineConfigBuilder<SetGracefulShutdownOnError<S>>where
S::GracefulShutdownOnError: IsUnset,
pub fn maybe_graceful_shutdown_on_error(
self,
value: Option<bool>,
) -> LiveDataEngineConfigBuilder<SetGracefulShutdownOnError<S>>where
S::GracefulShutdownOnError: IsUnset,
Sourcepub fn qsize(self, value: u32) -> LiveDataEngineConfigBuilder<SetQsize<S>>where
S::Qsize: IsUnset,
pub fn qsize(self, value: u32) -> LiveDataEngineConfigBuilder<SetQsize<S>>where
S::Qsize: IsUnset,
Sourcepub fn maybe_qsize(
self,
value: Option<u32>,
) -> LiveDataEngineConfigBuilder<SetQsize<S>>where
S::Qsize: IsUnset,
pub fn maybe_qsize(
self,
value: Option<u32>,
) -> LiveDataEngineConfigBuilder<SetQsize<S>>where
S::Qsize: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for LiveDataEngineConfigBuilder<S>
impl<S> RefUnwindSafe for LiveDataEngineConfigBuilder<S>
impl<S> Send for LiveDataEngineConfigBuilder<S>
impl<S> Sync for LiveDataEngineConfigBuilder<S>
impl<S> Unpin for LiveDataEngineConfigBuilder<S>
impl<S> UnsafeUnpin for LiveDataEngineConfigBuilder<S>
impl<S> UnwindSafe for LiveDataEngineConfigBuilder<S>
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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