pub struct HmcProgressiveRangePlanner { /* private fields */ }Expand description
Progressive range planner constructed from the 64B .hmc header and CBOR index footer.
Implementations§
Source§impl HmcProgressiveRangePlanner
impl HmcProgressiveRangePlanner
Sourcepub fn from_header_and_index(
header: HmcHeaderProbe,
index_footer_bytes: &[u8],
) -> Result<Self, BundleError>
pub fn from_header_and_index( header: HmcHeaderProbe, index_footer_bytes: &[u8], ) -> Result<Self, BundleError>
Construct a planner from the 64-byte header probe and the fetched CBOR index footer bytes.
Sourcepub fn from_header_and_index_with_limits(
header: HmcHeaderProbe,
index_footer_bytes: &[u8],
expected_extent: u64,
extent_limit: ExtentLimit,
limits: IndexReadLimits,
) -> Result<Self, BundleError>
pub fn from_header_and_index_with_limits( header: HmcHeaderProbe, index_footer_bytes: &[u8], expected_extent: u64, extent_limit: ExtentLimit, limits: IndexReadLimits, ) -> Result<Self, BundleError>
Bounded structural admission. The public probe cannot prove original reserved bytes. expected_extent must be pinned independently by the caller for a remote object.
Sourcepub fn from_raw_header_and_index_with_limits(
header_bytes: &[u8],
index_footer_bytes: &[u8],
expected_extent: u64,
extent_limit: ExtentLimit,
limits: IndexReadLimits,
) -> Result<Self, BundleError>
pub fn from_raw_header_and_index_with_limits( header_bytes: &[u8], index_footer_bytes: &[u8], expected_extent: u64, extent_limit: ExtentLimit, limits: IndexReadLimits, ) -> Result<Self, BundleError>
Preferred remote facade: admit exact original header bytes and an independent extent. Success validates directory structure; payload CRC/hash/proofs remain incomplete.
Sourcepub fn header(&self) -> &HmcHeaderProbe
pub fn header(&self) -> &HmcHeaderProbe
Validated header probe.
Sourcepub fn entries(&self) -> &[BundleEntry]
pub fn entries(&self) -> &[BundleEntry]
Decoded index entries.
Sourcepub fn plan_entry_ranges(&self) -> Vec<HmcRangeRequest>
pub fn plan_entry_ranges(&self) -> Vec<HmcRangeRequest>
Classify an entry into its default StreamPriorityTier and produce whole-entry
range requests sorted by (tier, offset).
Sourcepub fn plan_10d_interior_section_ranges(
&self,
entry_key: &str,
entry_prefix_bytes: &[u8],
) -> Result<Vec<HmcRangeRequest>, BundleError>
pub fn plan_10d_interior_section_ranges( &self, entry_key: &str, entry_prefix_bytes: &[u8], ) -> Result<Vec<HmcRangeRequest>, BundleError>
Given the front prefix of a .10d entry inside the bundle (>= 64 + section_count * 24 bytes),
plan sub-entry section range requests ordered by StreamPriorityTier.
Trait Implementations§
Source§impl Clone for HmcProgressiveRangePlanner
impl Clone for HmcProgressiveRangePlanner
Auto Trait Implementations§
impl Freeze for HmcProgressiveRangePlanner
impl RefUnwindSafe for HmcProgressiveRangePlanner
impl Send for HmcProgressiveRangePlanner
impl Sync for HmcProgressiveRangePlanner
impl Unpin for HmcProgressiveRangePlanner
impl UnsafeUnpin for HmcProgressiveRangePlanner
impl UnwindSafe for HmcProgressiveRangePlanner
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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