//! A module for managed resources.
useasync_trait::async_trait;/// An interface for managing resources used by [`Pool`](crate::Pool).
#[async_trait]pubtraitManage: Sync {/// The type of resource managed by [`Pool`](crate::Pool).
typeOutput:Send+Sync;/// The type of error from a resource.
typeError;/// Tries to create a resource using the manager.
async fntry_create(&self)->Result<Self::Output, Self::Error>;/// Returns `true` if the given resource is valid.
async fnvalidate(&self, _resource:&Self::Output)->bool{true}}