pub trait FeatureRequesterFactory: Send {
    // Required method
    fn build(
        &self,
        tags: Option<String>,
    ) -> 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§

source

fn build( &self, tags: Option<String>, ) -> Result<Box<dyn FeatureRequester>, BuildError>

Create an instance of FeatureRequester.

Implementors§