Struct iroh_blobs::get::progress::BlobState
source · pub struct BlobState {
pub hash: Hash,
pub size: Option<BaoBlobSize>,
pub progress: BlobProgress,
pub local_ranges: Option<RangeSpec>,
pub child_count: Option<u64>,
}
Expand description
State of a single blob in transfer
Fields§
§hash: Hash
The hash of this blob.
size: Option<BaoBlobSize>
The size of this blob. Only known if the blob is partially present locally, or after having received the size from the remote.
progress: BlobProgress
The current state of the blob transfer.
local_ranges: Option<RangeSpec>
Ranges already available locally at the time of starting the transfer.
child_count: Option<u64>
Number of children (only applies to hashseqs, None for raw blobs).
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for BlobState
impl<'de> Deserialize<'de> for BlobState
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 BlobState
impl PartialEq for BlobState
impl Eq for BlobState
impl StructuralPartialEq for BlobState
Auto Trait Implementations§
impl Freeze for BlobState
impl RefUnwindSafe for BlobState
impl Send for BlobState
impl Sync for BlobState
impl Unpin for BlobState
impl UnwindSafe for BlobState
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.