Struct bb8_arangodb::ArangoConnectionManager
source · [−]pub struct ArangoConnectionManager { /* private fields */ }Expand description
A connection manager for ArangoDB.
Implementations
sourceimpl ArangoConnectionManager
impl ArangoConnectionManager
sourcepub fn new(url: &str, method: AuthenticationMethod) -> Self
pub fn new(url: &str, method: AuthenticationMethod) -> Self
Create a new ArangoConnectionManager..
Trait Implementations
sourceimpl Debug for ArangoConnectionManager
impl Debug for ArangoConnectionManager
sourceimpl ManageConnection for ArangoConnectionManager
impl ManageConnection for ArangoConnectionManager
type Connection = GenericConnection<ReqwestClient, Normal>
type Connection = GenericConnection<ReqwestClient, Normal>
The connection type this manager deals with.
type Error = ClientError
type Error = ClientError
The error type returned by
Connections.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 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
'life0: 'async_trait,
'life1: 'async_trait,
Self: '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
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Determines if the connection is still connected to the database.
sourcefn 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 RefUnwindSafe for ArangoConnectionManager
impl Send for ArangoConnectionManager
impl Sync for ArangoConnectionManager
impl Unpin for ArangoConnectionManager
impl UnwindSafe for ArangoConnectionManager
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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