pub struct DispatchGeneration { /* private fields */ }Expand description
Stable handle to one dispatcher generation. A stale handle never redirects work into a later generation.
Implementations§
Source§impl DispatchGeneration
impl DispatchGeneration
Sourcepub fn enqueue(
&self,
operation: DispatchOperation,
) -> Result<DispatchTicket, DispatchEnqueueError>
pub fn enqueue( &self, operation: DispatchOperation, ) -> Result<DispatchTicket, DispatchEnqueueError>
Enqueues one closed owned operation in this exact generation.
This never wakes Excel. A stale handle cannot redirect work into a later
generation, and a queue-full error leaves operation with the caller.
Sourcepub fn diagnostics(&self) -> DispatchDiagnostics
pub fn diagnostics(&self) -> DispatchDiagnostics
Returns a bounded diagnostics snapshot for this generation.
Trait Implementations§
Source§impl Clone for DispatchGeneration
impl Clone for DispatchGeneration
Auto Trait Implementations§
impl Freeze for DispatchGeneration
impl RefUnwindSafe for DispatchGeneration
impl Send for DispatchGeneration
impl Sync for DispatchGeneration
impl Unpin for DispatchGeneration
impl UnsafeUnpin for DispatchGeneration
impl UnwindSafe for DispatchGeneration
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