pub struct WindowsRestartHydration { /* private fields */ }Expand description
Product-neutral metadata replacement for one CFAPI RESTART_HYDRATION operation.
The optional identity must still decode to the same stable CloudItemKey as the callback.
Revision resolution remains in the product backend adapter; this value only carries the native
placeholder state that CFAPI may update while restarting pending I/O.
Implementations§
Source§impl WindowsRestartHydration
impl WindowsRestartHydration
Sourcepub const fn with_metadata(self, metadata: WindowsPlaceholderMetadata) -> Self
pub const fn with_metadata(self, metadata: WindowsPlaceholderMetadata) -> Self
Replaces the native filesystem metadata, including the logical file size.
Sourcepub fn with_identity(self, identity: WindowsFileIdentity) -> Self
pub fn with_identity(self, identity: WindowsFileIdentity) -> Self
Replaces the persisted native identity after same-item validation.
Sourcepub const fn mark_in_sync(self) -> Self
pub const fn mark_in_sync(self) -> Self
Marks the restarted placeholder in-sync after successful native completion.
Sourcepub const fn metadata(&self) -> Option<WindowsPlaceholderMetadata>
pub const fn metadata(&self) -> Option<WindowsPlaceholderMetadata>
Returns the optional replacement metadata.
Sourcepub const fn identity(&self) -> Option<&WindowsFileIdentity>
pub const fn identity(&self) -> Option<&WindowsFileIdentity>
Returns the optional replacement identity.
Sourcepub const fn should_mark_in_sync(&self) -> bool
pub const fn should_mark_in_sync(&self) -> bool
Returns whether the native restart should set CFAPI in-sync state.
Trait Implementations§
Source§impl Clone for WindowsRestartHydration
impl Clone for WindowsRestartHydration
Source§fn clone(&self) -> WindowsRestartHydration
fn clone(&self) -> WindowsRestartHydration
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WindowsRestartHydration
impl Debug for WindowsRestartHydration
Source§impl Default for WindowsRestartHydration
impl Default for WindowsRestartHydration
Source§fn default() -> WindowsRestartHydration
fn default() -> WindowsRestartHydration
Returns the “default value” for a type. Read more
Source§impl PartialEq for WindowsRestartHydration
impl PartialEq for WindowsRestartHydration
impl Eq for WindowsRestartHydration
impl StructuralPartialEq for WindowsRestartHydration
Auto Trait Implementations§
impl Freeze for WindowsRestartHydration
impl RefUnwindSafe for WindowsRestartHydration
impl Send for WindowsRestartHydration
impl Sync for WindowsRestartHydration
impl Unpin for WindowsRestartHydration
impl UnwindSafe for WindowsRestartHydration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more