pub struct QueryReconstructionResponseV2 {
pub offset_into_first_range: u64,
pub terms: Vec<XorbReconstructionTerm>,
pub xorbs: HashMap<HexMerkleHash, Vec<XorbMultiRangeFetch>>,
}Expand description
V2 reconstruction response - optimized for multi-range fetching. May provide fewer signed URLs per xorb by combining multiple byte ranges into a single URL where possible.
Fields§
§offset_into_first_range: u64§terms: Vec<XorbReconstructionTerm>§xorbs: HashMap<HexMerkleHash, Vec<XorbMultiRangeFetch>>Map from xorb hash -> list of multi-range fetch entries. Typically 1 entry per xorb. Multiple entries when the URL length limit (~8 KiB, roughly ~500 ranges) forces a split.
Trait Implementations§
Source§impl Clone for QueryReconstructionResponseV2
impl Clone for QueryReconstructionResponseV2
Source§fn clone(&self) -> QueryReconstructionResponseV2
fn clone(&self) -> QueryReconstructionResponseV2
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for QueryReconstructionResponseV2
impl<'de> Deserialize<'de> for QueryReconstructionResponseV2
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 From<QueryReconstructionResponse> for QueryReconstructionResponseV2
impl From<QueryReconstructionResponse> for QueryReconstructionResponseV2
Source§fn from(v1: QueryReconstructionResponse) -> Self
fn from(v1: QueryReconstructionResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for QueryReconstructionResponseV2
impl RefUnwindSafe for QueryReconstructionResponseV2
impl Send for QueryReconstructionResponseV2
impl Sync for QueryReconstructionResponseV2
impl Unpin for QueryReconstructionResponseV2
impl UnsafeUnpin for QueryReconstructionResponseV2
impl UnwindSafe for QueryReconstructionResponseV2
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more