pub struct WindowsFetchDataRequest { /* private fields */ }Expand description
Accepted hydration request plus its non-cloneable active-session lease.
Implementations§
Source§impl WindowsFetchDataRequest
impl WindowsFetchDataRequest
Sourcepub const fn snapshot(&self) -> &WindowsFetchDataSnapshot
pub const fn snapshot(&self) -> &WindowsFetchDataSnapshot
Returns the immutable callback snapshot.
Sourcepub const fn lease(&self) -> &WindowsCallbackLease
pub const fn lease(&self) -> &WindowsCallbackLease
Returns the accepted generation lease.
Sourcepub fn terminal_attempted(&self) -> bool
pub fn terminal_attempted(&self) -> bool
Returns whether this request already made its one terminal native completion attempt.
Sourcepub fn progress_reporter(&self) -> WindowsFetchDataProgressReporter
pub fn progress_reporter(&self) -> WindowsFetchDataProgressReporter
Creates an owned progress reporter that can be moved to another worker while this request awaits hydration.
Sourcepub fn hydration_request(
&self,
revision: ContentRevision,
alignment: Alignment,
) -> Result<HydrationRequest>
pub fn hydration_request( &self, revision: ContentRevision, alignment: Alignment, ) -> Result<HydrationRequest>
Builds the exact revision-bound core hydration request for this callback.
The caller resolves revision from product-owned metadata using the stable item identity
in the snapshot. Windows callback paths and filenames are never used as revision sources.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub async fn prepare_transfer(
&self,
coordinator: &HydrationCoordinator,
revision: ContentRevision,
alignment: Alignment,
) -> Result<WindowsFetchDataTransfer>
pub async fn prepare_transfer( &self, coordinator: &HydrationCoordinator, revision: ContentRevision, alignment: Alignment, ) -> Result<WindowsFetchDataTransfer>
Waits for product-neutral hydration work and returns an owned, callback-bound transfer.
This method performs no native call and does not consume terminal completion ownership.
Platform workers may use it for explicit orchestration; ordinary Windows workers should
prefer WindowsFetchDataRequest::hydrate so every error is terminally reported to CFAPI.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub async fn prepare_registered_transfer(
&mut self,
coordinator: &HydrationCoordinator,
revision: ContentRevision,
alignment: Alignment,
registry: &WindowsFetchDataWaiterRegistry,
) -> Result<WindowsFetchDataPreparation>
pub async fn prepare_registered_transfer( &mut self, coordinator: &HydrationCoordinator, revision: ContentRevision, alignment: Alignment, registry: &WindowsFetchDataWaiterRegistry, ) -> Result<WindowsFetchDataPreparation>
Registers this callback’s core waiter for native cancellation while hydration is pending.
A platform cancellation that covers the complete waiter range returns Cancelled without
manufacturing a core/backend failure. Partial cancellation retains the waiter because bytes
outside that subrange remain required by CFAPI.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.