pub enum WindowsCallbackRequest {
FetchData(WindowsFetchDataRequest),
CancelFetchData(WindowsCancelFetchDataRequest),
Preflight(WindowsPreflightRequest),
Observation {
notification: WindowsObservedNotification,
lease: WindowsCallbackLease,
},
}Expand description
One immutable callback snapshot accepted by a specific connection generation.
Variants§
FetchData(WindowsFetchDataRequest)
A hydration request that requires a later terminal CfExecute operation.
CancelFetchData(WindowsCancelFetchDataRequest)
A cancellation notification for an existing hydration request or subrange.
Preflight(WindowsPreflightRequest)
A blocking native filesystem operation awaiting one explicit acknowledgement.
Observation
A completed native filesystem effect delivered for durable observation/reconciliation.
Fields
notification: WindowsObservedNotificationOwned completion snapshot.
lease: WindowsCallbackLeaseLease fencing this observation to the accepting session generation.
Implementations§
Source§impl WindowsCallbackRequest
impl WindowsCallbackRequest
Sourcepub const fn info(&self) -> &WindowsCallbackInfoSnapshot
pub const fn info(&self) -> &WindowsCallbackInfoSnapshot
Returns common owned callback information.
Sourcepub fn generation(&self) -> SessionGeneration
pub fn generation(&self) -> SessionGeneration
Returns the generation that accepted this request.
Sourcepub fn detached_fetch_data(
snapshot: WindowsFetchDataSnapshot,
lease: WindowsCallbackLease,
) -> Result<Self>
pub fn detached_fetch_data( snapshot: WindowsFetchDataSnapshot, lease: WindowsCallbackLease, ) -> Result<Self>
Binds a detached fetch snapshot to an exact generation lease for portable orchestration
and contract tests. Detached requests never call CFAPI, including from Drop.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub fn cancel_fetch_data(
snapshot: WindowsCancelFetchDataSnapshot,
lease: WindowsCallbackLease,
) -> Result<Self>
pub fn cancel_fetch_data( snapshot: WindowsCancelFetchDataSnapshot, lease: WindowsCallbackLease, ) -> Result<Self>
Binds a cancellation snapshot to the exact generation lease that accepted it.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub fn detached_preflight(
snapshot: WindowsPreflightSnapshot,
lease: WindowsCallbackLease,
) -> Result<Self>
pub fn detached_preflight( snapshot: WindowsPreflightSnapshot, lease: WindowsCallbackLease, ) -> Result<Self>
Binds a detached preflight snapshot to the generation that accepted it for portable orchestration and contract tests. Detached requests never acknowledge through CFAPI.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub fn observation(
notification: WindowsObservedNotification,
lease: WindowsCallbackLease,
) -> Result<Self>
pub fn observation( notification: WindowsObservedNotification, lease: WindowsCallbackLease, ) -> Result<Self>
Binds a completed notification to the generation that accepted it.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.