Struct iroh_blobs::downloader::DownloadKind
source · pub struct DownloadKind(/* private fields */);
Available on crate feature
downloader
only.Expand description
The kind of resource to download.
Implementations§
source§impl DownloadKind
impl DownloadKind
sourcepub const fn format(&self) -> BlobFormat
pub const fn format(&self) -> BlobFormat
Get the format of this download
sourcepub const fn hash_and_format(&self) -> HashAndFormat
pub const fn hash_and_format(&self) -> HashAndFormat
Get the HashAndFormat
pair of this download
Trait Implementations§
source§impl Clone for DownloadKind
impl Clone for DownloadKind
source§fn clone(&self) -> DownloadKind
fn clone(&self) -> DownloadKind
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 DownloadKind
impl Debug for DownloadKind
source§impl Display for DownloadKind
impl Display for DownloadKind
source§impl From<DownloadKind> for HashAndFormat
impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> Self
fn from(value: DownloadKind) -> Self
Converts to this type from the input type.
source§impl From<HashAndFormat> for DownloadKind
impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> Self
fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.
source§impl Hash for DownloadKind
impl Hash for DownloadKind
source§impl PartialEq for DownloadKind
impl PartialEq for DownloadKind
source§fn eq(&self, other: &DownloadKind) -> bool
fn eq(&self, other: &DownloadKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DownloadKind
impl Eq for DownloadKind
impl StructuralPartialEq for DownloadKind
Auto Trait Implementations§
impl Freeze for DownloadKind
impl RefUnwindSafe for DownloadKind
impl Send for DownloadKind
impl Sync for DownloadKind
impl Unpin for DownloadKind
impl UnwindSafe for DownloadKind
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
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.