/// Initialize the storage needed for this particular policy handler.
Initialize the storage needed for this particular policy handler.
Initialize the storage needed for this particular policy handler .
pub async fn initialize_storage<T>(&self, storage_factory: &Arc<T>) -> Result<(), Error>
    where
        T: DeviceStorageFactory,
    {
        match self {
            #[cfg(test)]
            Self::Unknown => Ok(()),
            Self::Audio => {
                storage_factory
                    .initialize::<audio::audio_policy_handler::AudioPolicyHandler>()
                    .await
            }
        }
    }
pub async fn initialize_storage < T > ( & self , storage_factory : & Arc < T > ) -> Result < ( ) , Error > where T : DeviceStorageFactory , { match self { # [ cfg ( test ) ] Self :: Unknown => Ok ( ( ) ) , Self :: Audio => { storage_factory . initialize :: < audio :: audio_policy_handler :: AudioPolicyHandler > ( ) . await } } }
Initialize the storage needed for this particular policy handler.
Initialize the storage needed for this particular policy handler .
&self
storage_factory
&Arc<T>