Trait iroh_docs::store::DownloadPolicyStore

source ·
pub trait DownloadPolicyStore {
    // Required method
    fn get_download_policy(
        &mut self,
        namespace: &NamespaceId
    ) -> Result<DownloadPolicy>;
}
Expand description

Store that gives read access to download policies for a document.

Required Methods§

source

fn get_download_policy( &mut self, namespace: &NamespaceId ) -> Result<DownloadPolicy>

Get the download policy for a document.

Implementations on Foreign Types§

source§

impl<T: DownloadPolicyStore> DownloadPolicyStore for &mut T

Implementors§