pub(crate) async fn load<S, P>(&self, source: P) -> Result<S, PersistenceError>
    where
        P: AsRef<Path>,
        S: DeserializeOwned,
    {
        let path = self.config.path.join(source);

        debug!("Loading from {}", path.display());

        deserialize(&read(path).await.map_err(PersistenceError::from)?)
            .map_err(PersistenceError::InvalidFileFormat)
    }
/// Load serialized database from `source`
Load serialized database from `source`
Load serialized database from ` source `
pub(crate) async fn load<S, P>(&self, source: P) -> Result<S, PersistenceError>
    where
        P: AsRef<Path>,
        S: DeserializeOwned,
    {
        let path = self.config.path.join(source);
        debug!("Loading from {}", path.display());
        deserialize(&read(path).await.map_err(PersistenceError::from)?)
            .map_err(PersistenceError::InvalidFileFormat)
    }
pub ( crate ) async fn load < S , P > ( & self , source : P ) -> Result < S , PersistenceError > where P : AsRef < Path > , S : DeserializeOwned , { let path = self . config . path . join ( source ) ; debug ! ( " " path display ( ) ) ; deserialize ( & read ( path ) . await . map_err ( PersistenceError :: from ) ? ) . map_err ( PersistenceError :: InvalidFileFormat ) }
Load serialized database from `source`
Load serialized database from ` source `
&self
source
P
&self
source
P