pub async fn initialize_storage<T>(&self, storage_factory: &Arc<T>) -> Result<(), Error>
    where
        T: DeviceStorageFactory,
    {
        match self {
            AgentType::CameraWatcher => {
                storage_factory
                    .initialize::<crate::agent::camera_watcher::CameraWatcherAgent>()
                    .await
            }
            AgentType::Earcons => {
                storage_factory.initialize::<crate::agent::earcons::agent::Agent>().await
            }
            AgentType::MediaButtons => {
                storage_factory.initialize::<crate::agent::media_buttons::MediaButtonsAgent>().await
            }
            AgentType::Restore => {
                storage_factory.initialize::<crate::agent::restore_agent::RestoreAgent>().await
            }
            AgentType::Inspect => {
                storage_factory.initialize::<crate::agent::inspect::InspectAgent>().await
            }
            AgentType::InspectPolicy => {
                storage_factory
                    .initialize::<crate::agent::inspect_policy::InspectPolicyAgent>()
                    .await
            }
            AgentType::InspectSettingData => {
                storage_factory
                    .initialize::<crate::agent::inspect_setting_data::InspectSettingAgent>()
                    .await
            }
        }
    }
/// Return the storage keys needed for this particular agent.
Return the storage keys needed for this particular agent.
Return the storage keys needed for this particular agent .
pub async fn initialize_storage<T>(&self, storage_factory: &Arc<T>) -> Result<(), Error>
    where
        T: DeviceStorageFactory,
    {
        match self {
            AgentType::CameraWatcher => {
                storage_factory
                    .initialize::<crate::agent::camera_watcher::CameraWatcherAgent>()
                    .await
            }
            AgentType::Earcons => {
                storage_factory.initialize::<crate::agent::earcons::agent::Agent>().await
            }
            AgentType::MediaButtons => {
                storage_factory.initialize::<crate::agent::media_buttons::MediaButtonsAgent>().await
            }
            AgentType::Restore => {
                storage_factory.initialize::<crate::agent::restore_agent::RestoreAgent>().await
            }
            AgentType::Inspect => {
                storage_factory.initialize::<crate::agent::inspect::InspectAgent>().await
            }
            AgentType::InspectPolicy => {
                storage_factory
                    .initialize::<crate::agent::inspect_policy::InspectPolicyAgent>()
                    .await
            }
            AgentType::InspectSettingData => {
                storage_factory
                    .initialize::<crate::agent::inspect_setting_data::InspectSettingAgent>()
                    .await
            }
        }
    }
pub async fn initialize_storage < T > ( & self , storage_factory : & Arc < T > ) -> Result < ( ) , Error > where T : DeviceStorageFactory , { match self { AgentType :: CameraWatcher => { storage_factory . initialize :: < crate :: agent :: camera_watcher :: CameraWatcherAgent > ( ) . await } AgentType :: Earcons => { storage_factory . initialize :: < crate :: agent :: earcons :: agent :: Agent > ( ) . await } AgentType :: MediaButtons => { storage_factory . initialize :: < crate :: agent :: media_buttons :: MediaButtonsAgent > ( ) . await } AgentType :: Restore => { storage_factory . initialize :: < crate :: agent :: restore_agent :: RestoreAgent > ( ) . await } AgentType :: Inspect => { storage_factory . initialize :: < crate :: agent :: inspect :: InspectAgent > ( ) . await } AgentType :: InspectPolicy => { storage_factory . initialize :: < crate :: agent :: inspect_policy :: InspectPolicyAgent > ( ) . await } AgentType :: InspectSettingData => { storage_factory . initialize :: < crate :: agent :: inspect_setting_data :: InspectSettingAgent > ( ) . await } } }
Return the storage keys needed for this particular agent.
Return the storage keys needed for this particular agent .
&self
storage_factory
&Arc<T>
&self
storage_factory
&Arc<T>