Trait swimmer::Recyclable [−][src]
Indicates that an object can be used
inside a Pool
.
Types implementing this trait must be Send
,
since the pool itself can be used across threads.
Required methods
fn new() -> Self where
Self: Sized,
[src]
Self: Sized,
Creates a new value of this type.
fn recycle(&mut self)
[src]
Resets this object, allowing it to be reused in the future without retaining its old state.
Implementations on Foreign Types
impl Recyclable for String
[src]
impl<T> Recyclable for Vec<T> where
T: Send,
[src]
T: Send,
impl<T> Recyclable for VecDeque<T> where
T: Send,
[src]
T: Send,
impl<T> Recyclable for LinkedList<T> where
T: Send,
[src]
T: Send,
impl<K, V> Recyclable for HashMap<K, V> where
K: Eq + Hash + Send,
V: Send,
[src]
K: Eq + Hash + Send,
V: Send,
impl<T> Recyclable for HashSet<T> where
T: Eq + Hash + Send,
[src]
T: Eq + Hash + Send,
impl<K, V> Recyclable for BTreeMap<K, V> where
K: Ord + Send,
V: Send,
[src]
K: Ord + Send,
V: Send,
impl<T> Recyclable for BTreeSet<T> where
T: Ord + Send,
[src]
T: Ord + Send,
impl<T> Recyclable for BinaryHeap<T> where
T: Ord + Send,
[src]
T: Ord + Send,