Skip to main content

Returnable

Trait Returnable 

Source
pub trait Returnable:
    Send
    + Sync
    + 'static {
    // Provided method
    fn on_return(&mut self) { ... }
}
Expand description

Trait for items that can be returned to a pool

Provided Methods§

Source

fn on_return(&mut self)

Called when an item is returned to the pool

Implementors§