pub struct StreamingDataSourceBuilder { /* private fields */ }
Expand description
Contains methods for configuring the streaming data source.
By default, the SDK uses a streaming connection to receive feature flag data from LaunchDarkly. If you want to customize the behavior of the connection, create a builder StreamingDataSourceBuilder::new, change its properties with the methods of this class, and pass it to crate::ConfigBuilder::data_source.
Examples
Adjust the initial reconnect delay.
ConfigBuilder::new("sdk-key").data_source(StreamingDataSourceBuilder::new()
.initial_reconnect_delay(Duration::from_secs(10)));
Implementations
Create a new instance of the StreamingDataSourceBuilder with default values.
Sets the initial reconnect delay for the streaming connection.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for StreamingDataSourceBuilder
impl Send for StreamingDataSourceBuilder
impl Sync for StreamingDataSourceBuilder
impl Unpin for StreamingDataSourceBuilder
impl UnwindSafe for StreamingDataSourceBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more