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§
Sourcefn bump_generation(&mut self, slot: u32)
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".