Skip to main content

CompletionReaper

Struct CompletionReaper 

Source
pub struct CompletionReaper<R: DeviceRuntime> { /* private fields */ }
Expand description

Scheduler-owned completion registry. The global map lock only resolves a slot; each fence is queried or waited under its own record lock.

Implementations§

Source§

impl<R: DeviceRuntime> CompletionReaper<R>

Source

pub fn new() -> Arc<Self>

Source

pub fn retained_count(&self) -> usize

Source

pub fn quarantined_count(&self) -> usize

Source

pub fn poll_bounded( &self, maximum_slots: usize, ) -> Result<CompletionSweepReceipt, VNextError>

Polls a bounded scheduler-owned snapshot. This path remains available after every external completion handle has detached.

Source

pub fn recover_slot_by_draining_lane( &self, slot_id: CompletionSlotId, ) -> Result<CompletionRecoveryOutcome, VNextError>

Runs the blocking recovery path for an exact slot after an indeterminate observation. A failed drain moves ownership into an auditable, retryable quarantine record instead of releasing or forgetting it.

Source

pub fn wait_slot_for_recovery( &self, slot_id: CompletionSlotId, ) -> Result<CompletionObservation, VNextError>

Performs the blocking exact-fence observation required before lane recovery. Schedulers must call this from an independent recovery worker, never from a request or admission thread.

Trait Implementations§

Source§

impl<R: DeviceRuntime> Debug for CompletionReaper<R>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<R: DeviceRuntime> Drop for CompletionReaper<R>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more

Auto Trait Implementations§

§

impl<R> !Freeze for CompletionReaper<R>

§

impl<R> RefUnwindSafe for CompletionReaper<R>
where Mutex<CompletionReaperState<R>>: RefUnwindSafe,

§

impl<R> Send for CompletionReaper<R>
where Mutex<CompletionReaperState<R>>: Send,

§

impl<R> Sync for CompletionReaper<R>
where Mutex<CompletionReaperState<R>>: Sync,

§

impl<R> Unpin for CompletionReaper<R>
where Mutex<CompletionReaperState<R>>: Unpin,

§

impl<R> UnsafeUnpin for CompletionReaper<R>
where Mutex<CompletionReaperState<R>>: UnsafeUnpin,

§

impl<R> UnwindSafe for CompletionReaper<R>
where Mutex<CompletionReaperState<R>>: UnwindSafe,

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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V