pub struct DataSystemBuilder { /* private fields */ }Expand description
Configures the FDv2 data system.
§Examples
Use the recommended data system.
ConfigBuilder::new("sdk-key").data_system(&DataSystemBuilder::default());Assemble a custom data system from individual sources.
let mut data_system = DataSystemBuilder::custom();
data_system.initializer(FDv2PollingBuilder::<HyperTransport>::new());
data_system.synchronizer(FDv2StreamingBuilder::<HyperTransport>::new());
ConfigBuilder::new("sdk-key").data_system(&data_system);Implementations§
Source§impl DataSystemBuilder
impl DataSystemBuilder
Sourcepub fn initializer(
&mut self,
source: impl FDv2InitializerConfig + 'static,
) -> &mut Self
pub fn initializer( &mut self, source: impl FDv2InitializerConfig + 'static, ) -> &mut Self
Appends an initializer, called before the synchronizers in configuration order.
Sourcepub fn synchronizer(
&mut self,
source: impl FDv2SynchronizerConfig + 'static,
) -> &mut Self
pub fn synchronizer( &mut self, source: impl FDv2SynchronizerConfig + 'static, ) -> &mut Self
Appends a synchronizer, ordered after any already added.
Sourcepub fn fdv1_fallback(&mut self, factory: &dyn DataSourceFactory) -> &mut Self
pub fn fdv1_fallback(&mut self, factory: &dyn DataSourceFactory) -> &mut Self
Sets the FDv1 source used as a last-resort fallback.
Sourcepub fn disable_fdv1_fallback(&mut self) -> &mut Self
pub fn disable_fdv1_fallback(&mut self) -> &mut Self
Disables the FDv1 fallback.
Trait Implementations§
Source§impl Clone for DataSystemBuilder
impl Clone for DataSystemBuilder
Auto Trait Implementations§
impl !RefUnwindSafe for DataSystemBuilder
impl !Send for DataSystemBuilder
impl !Sync for DataSystemBuilder
impl !UnwindSafe for DataSystemBuilder
impl Freeze for DataSystemBuilder
impl Unpin for DataSystemBuilder
impl UnsafeUnpin for DataSystemBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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