Enum iroh_docs::store::DownloadPolicy
source · pub enum DownloadPolicy {
NothingExcept(Vec<FilterKind>),
EverythingExcept(Vec<FilterKind>),
}
Expand description
Download policy to decide which content blobs shall be downloaded.
Variants§
NothingExcept(Vec<FilterKind>)
Do not download any key unless it matches one of the filters.
EverythingExcept(Vec<FilterKind>)
Download every key unless it matches one of the filters.
Implementations§
Trait Implementations§
source§impl Clone for DownloadPolicy
impl Clone for DownloadPolicy
source§fn clone(&self) -> DownloadPolicy
fn clone(&self) -> DownloadPolicy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DownloadPolicy
impl Debug for DownloadPolicy
source§impl Default for DownloadPolicy
impl Default for DownloadPolicy
source§impl<'de> Deserialize<'de> for DownloadPolicy
impl<'de> Deserialize<'de> for DownloadPolicy
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for DownloadPolicy
impl PartialEq for DownloadPolicy
source§fn eq(&self, other: &DownloadPolicy) -> bool
fn eq(&self, other: &DownloadPolicy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DownloadPolicy
impl Serialize for DownloadPolicy
impl Eq for DownloadPolicy
impl StructuralPartialEq for DownloadPolicy
Auto Trait Implementations§
impl Freeze for DownloadPolicy
impl RefUnwindSafe for DownloadPolicy
impl Send for DownloadPolicy
impl Sync for DownloadPolicy
impl Unpin for DownloadPolicy
impl UnwindSafe for DownloadPolicy
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more