AsyncDbnStore::from_zstd_file

Create a new decoder from a Zstandard-compressed DBN file. If the file is uncompressed, use from_file instead.

Parameters

Parameter
Type
Description
path
impl AsRef<Path>
A path to a Zstandard-compressed DBN file.

Returns

An AsyncDbnStore object.

This function will return an error if it is unable to parse the metadata in the file or the input is encoded in a newer version of DBN.

API method
pub async fn from_zstd_file(
    path: impl AsRef<Path>,
) -> dbn::Result<Self>;