pub struct NativeCheckpointTransfer<R: DeviceRuntime> { /* private fields */ }Expand description
One native reaper slot. Polling errors are not proof of quiescence. Keep the handle for blocking recovery or lane drain. Dropping it never releases an unknown write: it marks the exact result abandoned for the existing reaper’s sweep/recovery path, which continues owning all native resources meanwhile.
Implementations§
Source§impl<R: DeviceRuntime> NativeCheckpointTransfer<R>
impl<R: DeviceRuntime> NativeCheckpointTransfer<R>
pub fn slot_id(&self) -> CompletionSlotId
pub fn poll(&self) -> Result<NativeCheckpointObservation, VNextError>
Sourcepub fn wait_for_recovery(
&self,
) -> Result<NativeCheckpointObservation, VNextError>
pub fn wait_for_recovery( &self, ) -> Result<NativeCheckpointObservation, VNextError>
Blocking recovery; callers should use their existing completion worker.
pub fn recover_by_draining_lane( &self, ) -> Result<NativeCheckpointObservation, VNextError>
Sourcepub fn take_result(
&mut self,
) -> Result<Option<NativeCheckpointResult<R>>, VNextError>
pub fn take_result( &mut self, ) -> Result<Option<NativeCheckpointResult<R>>, VNextError>
Takes a terminal result exactly once. A successful restore installs the core frontier for the target/input bound at submission, but keeps its gate closed while the caller publishes executor/scheduler progress.
Trait Implementations§
Source§impl<R: DeviceRuntime> Drop for NativeCheckpointTransfer<R>
impl<R: DeviceRuntime> Drop for NativeCheckpointTransfer<R>
Auto Trait Implementations§
impl<R> !RefUnwindSafe for NativeCheckpointTransfer<R>
impl<R> !UnwindSafe for NativeCheckpointTransfer<R>
impl<R> Freeze for NativeCheckpointTransfer<R>
impl<R> Send for NativeCheckpointTransfer<R>
impl<R> Sync for NativeCheckpointTransfer<R>
impl<R> Unpin for NativeCheckpointTransfer<R>
impl<R> UnsafeUnpin for NativeCheckpointTransfer<R>
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