[][src]Trait tokio_resource_pool::Manage

pub trait Manage: Sized {
    type Resource: Send;
    type CheckOut: From<CheckOut<Self>>;
    type Error;
    type Future: Future<Item = Self::Resource, Error = Self::Error>;
    fn create(&self) -> Self::Future;
}

A trait for managing the lifecycle of a resource.

Associated Types

type Resource: Send

type CheckOut: From<CheckOut<Self>>

type Error

type Future: Future<Item = Self::Resource, Error = Self::Error>

Loading content...

Required methods

fn create(&self) -> Self::Future

Loading content...

Implementors

Loading content...