Struct mempool::RefGuard [] [src]

pub struct RefGuard<'a, T: Send + 'static> {
    // some fields omitted
}

A guard for putting values back into the pool on drop.

This stores a borrowed reference to the pool that it originated from.

Trait Implementations

impl<'a, T: Send + 'static> Drop for RefGuard<'a, T>

fn drop(&mut self)

impl<'a, T: Send + 'static> Deref for RefGuard<'a, T>

type Target = T

fn deref(&self) -> &T

impl<'a, T: Send + 'static> DerefMut for RefGuard<'a, T>

fn deref_mut(&mut self) -> &mut T

Derived Implementations

impl<'a, T: Debug + Send + 'static> Debug for RefGuard<'a, T>

fn fmt(&self, __arg_0: &mut Formatter) -> Result