Skip to main content

GenerationBump

Trait GenerationBump 

Source
pub trait GenerationBump<T> {
    // Required method
    fn bump_generation(&mut self, slot: u32);
}
Expand description

Bumps a slot’s generation (called by the worker right before reuse).

Required Methods§

Source

fn bump_generation(&mut self, slot: u32)

Increments the slot generation, invalidating stale tokens.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§