pub fn configure(config: SimpleConfig, _settings: &settings::Settings) -> Result<Option<ComponentSender>, ComponentError> {
    if config.enabled {
        let (_, sender) = executor::connect(ConsumerComponent::new());
        Ok(Some(sender))
    } else {
        Ok(None)
    }
}
/// This is the entry point for configuring the consumer component. We get two sets of settings,
/// our specific and the full set. Hopefully we'll not need to dig into the full set
/// In our case, there's very little to do.
This is the entry point for configuring the consumer component. We get two sets of settings,
our specific and the full set. Hopefully we'll not need to dig into the full set
In our case, there's very little to do.
This is the entry point for configuring the consumer component . We get two sets of settings our specific and the full set . Hopefully we ' ll not need to dig into the full set In our case there ' s very little to do .
pub fn configure(config: SimpleConfig, _settings: &settings::Settings) -> Result<Option<ComponentSender>, ComponentError> {
    if config.enabled {
        let (_, sender) = executor::connect(ConsumerComponent::new());
        Ok(Some(sender))
    } else {
        Ok(None)
    }
}
pub fn configure ( config : SimpleConfig , _settings : & settings :: Settings ) -> Result < Option < ComponentSender > , ComponentError > { if config . enabled { let ( _ , sender ) = executor :: connect ( ConsumerComponent :: new ( ) ) ; Ok ( Some ( sender ) ) } else { Ok ( None ) } }
This is the entry point for configuring the consumer component.
This is the entry point for configuring the consumer component .
config
SimpleConfig
_settings
&settings::Settings