Skip to main content

Reclaim

Trait Reclaim 

Source
pub trait Reclaim {
    // Required method
    fn reclaim(&mut self);
}
Expand description

Resets a pooled value so the pool can hand it out again.

Required Methods§

Source

fn reclaim(&mut self)

Clear the value in place, keeping its allocation for the next acquire.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§