[][src]Struct rpool::Pool

pub struct Pool<Y: Send + Sync + 'static, T: Poolable<Y> + 'static> { /* fields omitted */ }

Methods

impl<Y: Send + Sync + 'static, T: Poolable<Y> + 'static> Pool<Y, T>[src]

pub fn new(scale_mode: PoolScaleMode, context: Y) -> Arc<Pool<Y, T>>[src]

pub fn get(self: &Arc<Pool<Y, T>>) -> Option<PoolGuard<Y, T>>[src]

Trait Implementations

impl<Y: Send + Sync + 'static, T: Poolable<Y> + 'static> Drop for Pool<Y, T>[src]

Auto Trait Implementations

impl<Y, T> RefUnwindSafe for Pool<Y, T> where
    Y: RefUnwindSafe

impl<Y, T> Send for Pool<Y, T>

impl<Y, T> Sync for Pool<Y, T>

impl<Y, T> Unpin for Pool<Y, T> where
    Y: Unpin

impl<Y, T> UnwindSafe for Pool<Y, T> where
    T: RefUnwindSafe,
    Y: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.