WindowsFetchDataRequest

Struct WindowsFetchDataRequest 

Source
pub struct WindowsFetchDataRequest { /* private fields */ }
Expand description

Accepted hydration request plus its non-cloneable active-session lease.

Implementations§

Source§

impl WindowsFetchDataRequest

Source

pub const fn snapshot(&self) -> &WindowsFetchDataSnapshot

Returns the immutable callback snapshot.

Source

pub const fn lease(&self) -> &WindowsCallbackLease

Returns the accepted generation lease.

Source

pub fn terminal_attempted(&self) -> bool

Returns whether this request already made its one terminal native completion attempt.

Source

pub fn progress_reporter(&self) -> WindowsFetchDataProgressReporter

Creates an owned progress reporter that can be moved to another worker while this request awaits hydration.

Source

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.

Source

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.

Source

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.

Trait Implementations§

Source§

impl Debug for WindowsFetchDataRequest

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for WindowsFetchDataRequest

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.