pub struct ManagerPorxy {
pub inner: Arc<RBDCManager>,
}
Fields
inner: Arc<RBDCManager>
Methods from Deref<Target = RBDCManager>
Trait Implementations
sourceimpl Clone for ManagerPorxy
impl Clone for ManagerPorxy
sourcefn clone(&self) -> ManagerPorxy
fn clone(&self) -> ManagerPorxy
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Deref for ManagerPorxy
impl Deref for ManagerPorxy
type Target = RBDCManager
type Target = RBDCManager
The resulting type after dereferencing.
sourceimpl From<Arc<RBDCManager>> for ManagerPorxy
impl From<Arc<RBDCManager>> for ManagerPorxy
sourcefn from(arg: Arc<RBDCManager>) -> Self
fn from(arg: Arc<RBDCManager>) -> Self
Converts to this type from the input type.
sourceimpl Manager for ManagerPorxy
impl Manager for ManagerPorxy
type Connection = Box<dyn Connection + 'static, Global>
type Connection = Box<dyn Connection + 'static, Global>
The connection type this manager deals with.
sourcefn connect<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Self::Connection, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn connect<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Self::Connection, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Attempts to create a new connection.
sourcefn check<'life0, 'async_trait>(
&'life0 self,
conn: Self::Connection
) -> Pin<Box<dyn Future<Output = Result<Self::Connection, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn check<'life0, 'async_trait>(
&'life0 self,
conn: Self::Connection
) -> Pin<Box<dyn Future<Output = Result<Self::Connection, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Determines if the connection is still connected to the database when check-out. Read more
sourcefn spawn_task<T>(&self, task: T) where
T: 'static + Future + Send,
<T as Future>::Output: 'static,
<T as Future>::Output: Send,
fn spawn_task<T>(&self, task: T) where
T: 'static + Future + Send,
<T as Future>::Output: 'static,
<T as Future>::Output: Send,
Spawns a new asynchronous task.
sourcefn validate(&self, _conn: &mut Self::Connection) -> bool
fn validate(&self, _conn: &mut Self::Connection) -> bool
Quickly determines a connection is still valid when check-in.
Auto Trait Implementations
impl !RefUnwindSafe for ManagerPorxy
impl Send for ManagerPorxy
impl Sync for ManagerPorxy
impl Unpin for ManagerPorxy
impl !UnwindSafe for ManagerPorxy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more