pub struct Manager { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Manager for Manager
impl Manager for Manager
Source§type Type = SyncWrapper<ApexDB>
type Type = SyncWrapper<ApexDB>
Type of
super::Objects that this Manager creates and recycles.Source§type Error = ApexError
type Error = ApexError
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,
conn: &mut Self::Type,
_metrics: &Metrics,
) -> RecycleResult<Self::Error>
async fn recycle( &self, conn: &mut Self::Type, _metrics: &Metrics, ) -> RecycleResult<Self::Error>
Tries to recycle an instance of
Manager::Type. Read moreAuto Trait Implementations§
impl !Freeze for Manager
impl RefUnwindSafe for Manager
impl Send for Manager
impl Sync for Manager
impl Unpin for Manager
impl UnsafeUnpin for Manager
impl UnwindSafe for Manager
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more