[][src]Struct async_object_pool::Pool

pub struct Pool<T> { /* fields omitted */ }

Implementations

impl<T> Pool<T>[src]

pub fn new(create_max: usize) -> Self[src]

pub async fn put(&self, item: T)[src]

pub async fn take_or_create<F>(&self, creator_fn: F) -> T where
    F: Fn() -> T, 
[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for Pool<T>[src]

impl<T> Send for Pool<T> where
    T: Send
[src]

impl<T> Sync for Pool<T> where
    T: Send
[src]

impl<T> Unpin for Pool<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for Pool<T> where
    T: UnwindSafe
[src]

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.