pub struct ArangoConnectionManager<C: ClientExt> { /* private fields */ }
Expand description
A connection manager for ArangoDB.
Implementations§
Source§impl<C: ClientExt> ArangoConnectionManager<C>
impl<C: ClientExt> ArangoConnectionManager<C>
Sourcepub fn new(url: String, method: AuthenticationMethod) -> Self
pub fn new(url: String, method: AuthenticationMethod) -> Self
Create a new ArangoConnectionManager..
Trait Implementations§
Source§impl<C: ClientExt + Send + 'static> ManageConnection for ArangoConnectionManager<C>
impl<C: ClientExt + Send + 'static> ManageConnection for ArangoConnectionManager<C>
Source§type Connection = GenericConnection<C>
type Connection = GenericConnection<C>
The connection type this manager deals with.
Source§type Error = ClientError
type Error = ClientError
The error type returned by
Connection
s.Source§fn connect<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Self::Connection, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connect<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Self::Connection, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Attempts to create a new connection.
Source§fn is_valid<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Connection,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn is_valid<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Connection,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Determines if the connection is still connected to the database.
Source§fn has_broken(&self, _conn: &mut Self::Connection) -> bool
fn has_broken(&self, _conn: &mut Self::Connection) -> bool
Synchronously determine if the connection is no longer usable, if possible.
Auto Trait Implementations§
impl<C> Freeze for ArangoConnectionManager<C>
impl<C> RefUnwindSafe for ArangoConnectionManager<C>where
C: RefUnwindSafe,
impl<C> Send for ArangoConnectionManager<C>where
C: Send,
impl<C> Sync for ArangoConnectionManager<C>
impl<C> Unpin for ArangoConnectionManager<C>where
C: Unpin,
impl<C> UnwindSafe for ArangoConnectionManager<C>where
C: 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