pub struct FcnetdConnectionPool<S: Socket> { /* private fields */ }Available on crate feature
connection-pool only.Implementations§
Trait Implementations§
Source§impl<S: Socket> Manager for FcnetdConnectionPool<S>
Available on crate feature deadpool only.
impl<S: Socket> Manager for FcnetdConnectionPool<S>
Available on crate feature
deadpool only.Source§type Type = FcnetdConnection<S>
type Type = FcnetdConnection<S>
Type of
super::Objects that this Manager creates and recycles.Source§type Error = Error
type Error = Error
Error that this
Manager can return when creating and/or recycling
super::Objects.Source§async fn create(&self) -> Result<Self::Type, Self::Error>
async fn create(&self) -> Result<Self::Type, Self::Error>
Creates a new instance of
Manager::Type.Source§async fn recycle(
&self,
_obj: &mut Self::Type,
_metrics: &Metrics,
) -> RecycleResult<Self::Error>
async fn recycle( &self, _obj: &mut Self::Type, _metrics: &Metrics, ) -> RecycleResult<Self::Error>
Tries to recycle an instance of
Manager::Type. Read moreAuto Trait Implementations§
impl<S> Freeze for FcnetdConnectionPool<S>
impl<S> RefUnwindSafe for FcnetdConnectionPool<S>where
S: RefUnwindSafe,
impl<S> Send for FcnetdConnectionPool<S>
impl<S> Sync for FcnetdConnectionPool<S>
impl<S> Unpin for FcnetdConnectionPool<S>
impl<S> UnwindSafe for FcnetdConnectionPool<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more