pub struct XdnaEvent { /* private fields */ }Expand description
A submission event: a handle over one preallocated event slot.
Trait Implementations§
Source§impl Drop for XdnaEvent
impl Drop for XdnaEvent
Source§fn drop(&mut self)
fn drop(&mut self)
Reclaim the ring slot. destroy_event is the intended release path, but a
dropped-instead-of-destroyed event would strand its slot; enough of them exhaust the ring
and fail every later submission with Busy for the life of the instance.
Only a terminal slot is reclaimed. A PENDING slot still belongs to the dispatch worker,
which will latch it; freeing it here would hand a live slot to the next submission. Such a
slot stays charged to resource_counts, which is exactly where a wedged lane’s event
belongs. The error detail is cleared before FREE is published, so a later claimer of this
slot can never observe the previous submission’s failure.
Auto Trait Implementations§
impl Freeze for XdnaEvent
impl RefUnwindSafe for XdnaEvent
impl Send for XdnaEvent
impl Sync for XdnaEvent
impl Unpin for XdnaEvent
impl UnsafeUnpin for XdnaEvent
impl UnwindSafe for XdnaEvent
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