pub struct WindowsFetchDataWaiterRegistry { /* private fields */ }Expand description
Shareable active-waiter registry for one or more CFAPI connection generations.
Correlation includes the session generation and every native operation key. A cancellation is forwarded to core only when it covers an entire waiter range. Partial overlap is recorded but retained because core waiter cancellation is atomic and CFAPI still requires bytes outside the cancellation range.
Implementations§
Source§impl WindowsFetchDataWaiterRegistry
impl WindowsFetchDataWaiterRegistry
Sourcepub fn with_watchdog_config(config: WindowsFetchDataWatchdogConfig) -> Self
pub fn with_watchdog_config(config: WindowsFetchDataWatchdogConfig) -> Self
Creates a registry with a host-controlled watchdog configuration.
Sourcepub fn metrics(&self) -> WindowsFetchDataWaiterMetrics
pub fn metrics(&self) -> WindowsFetchDataWaiterMetrics
Returns a point-in-time counter snapshot.
Sourcepub fn cancel(
&self,
snapshot: &WindowsCancelFetchDataSnapshot,
) -> Result<WindowsFetchDataCancellationOutcome>
pub fn cancel( &self, snapshot: &WindowsCancelFetchDataSnapshot, ) -> Result<WindowsFetchDataCancellationOutcome>
Applies one owned CFAPI cancellation snapshot to correlated active waiters.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub fn report_progress(
&self,
snapshot: &WindowsCallbackInfoSnapshot,
progress: WindowsFetchDataProgress,
now: Instant,
) -> Result<usize>
pub fn report_progress( &self, snapshot: &WindowsCallbackInfoSnapshot, progress: WindowsFetchDataProgress, now: Instant, ) -> Result<usize>
Applies provider progress to all active waiters with the same native correlation and refreshes their local watchdog deadline.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub fn poll_watchdog(&self, now: Instant) -> WindowsFetchDataWatchdogOutcome
pub fn poll_watchdog(&self, now: Instant) -> WindowsFetchDataWatchdogOutcome
Cancels pending waiters whose watchdog deadline has elapsed. The host owns the polling cadence; this method never starts a timer or blocks a native callback thread.
Trait Implementations§
Source§impl Clone for WindowsFetchDataWaiterRegistry
impl Clone for WindowsFetchDataWaiterRegistry
Source§fn clone(&self) -> WindowsFetchDataWaiterRegistry
fn clone(&self) -> WindowsFetchDataWaiterRegistry
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more