Trait mithril_common::resource_pool::Reset

source ·
pub trait Reset {
    // Provided method
    fn reset(&mut self) -> StdResult<()> { ... }
}
Expand description

Reset trait which is implemented by pooled resource items. As pool resource items are mutable, this will guarantee that the pool stays consistent and that acquired resource items do not depend from previous computations.

Provided Methods§

source

fn reset(&mut self) -> StdResult<()>

Reset the resource

Implementations on Foreign Types§

source§

impl Reset for String

Implementors§

source§

impl<K: MKMapKey, V: MKMapValue<K>, S: MKTreeStorer> Reset for MKMap<K, V, S>