Struct pool::Checkout [-] [+] [src]

pub struct Checkout<T> {
    // some fields omitted
}

A handle to a checked out value. When dropped out of scope, the value will be returned to the pool.

Methods

impl<T> Checkout<T>

fn extra(&self) -> &[u8]

Read access to the raw bytes

fn extra_mut(&self) -> &mut [u8]

Write access to the extra bytes

Trait Implementations

impl<T> Deref for Checkout<T>

type Target = T

fn deref(&self) -> &T

impl<T> DerefMut for Checkout<T>

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

impl<T> Drop for Checkout<T>

fn drop(&mut self)

impl<T: Send> Send for Checkout<T>

impl<T: Sync> Sync for Checkout<T>