iroh_docs::store

Trait 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§