WindowsCallbackRequest

Enum WindowsCallbackRequest 

Source
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: WindowsObservedNotification

Owned completion snapshot.

§lease: WindowsCallbackLease

Lease fencing this observation to the accepting session generation.

Implementations§

Source§

impl WindowsCallbackRequest

Source

pub const fn info(&self) -> &WindowsCallbackInfoSnapshot

Returns common owned callback information.

Source

pub fn generation(&self) -> SessionGeneration

Returns the generation that accepted this request.

Source

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.

Source

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.

Source

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.

Source

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.

Trait Implementations§

Source§

impl Debug for WindowsCallbackRequest

Source§

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

Formats the value using the given formatter. 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.