pub trait FeatureRequesterFactory: Send {
fn build(&self) -> Result<Box<dyn FeatureRequester>, BuildError>;
}
Expand description
Trait which allows creation of feature requesters.
Feature requesters are used by the polling data source (see crate::PollingDataSourceBuilder) to retrieve state information from an external resource such as the LaunchDarkly API.
Required methods
fn build(&self) -> Result<Box<dyn FeatureRequester>, BuildError>
fn build(&self) -> Result<Box<dyn FeatureRequester>, BuildError>
Create an instance of FeatureRequester.