pub struct GraphConnectionManager<S, SLEEP, H, V>where
H: ResponseHandler,
V: Version,{
pub client_configuration: GraphClientConfiguration,
pub transport_configuration: AsyncTransportConfiguration<H>,
/* private fields */
}
Fields§
§client_configuration: GraphClientConfiguration
§transport_configuration: AsyncTransportConfiguration<H>
Implementations§
Source§impl<S, SLEEP, H, V> GraphConnectionManager<S, SLEEP, H, V>
impl<S, SLEEP, H, V> GraphConnectionManager<S, SLEEP, H, V>
pub fn new( client_configuration: GraphClientConfiguration, transport_configuration: AsyncTransportConfiguration<H>, ) -> Self
Trait Implementations§
Source§impl<S: Clone, SLEEP: Clone, H, V> Clone for GraphConnectionManager<S, SLEEP, H, V>
impl<S: Clone, SLEEP: Clone, H, V> Clone for GraphConnectionManager<S, SLEEP, H, V>
Source§fn clone(&self) -> GraphConnectionManager<S, SLEEP, H, V>
fn clone(&self) -> GraphConnectionManager<S, SLEEP, H, V>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<H> ManageConnection for GraphConnectionManager<TokioTcpStream, TokioSleep, H, VersionV1>
impl<H> ManageConnection for GraphConnectionManager<TokioTcpStream, TokioSleep, H, VersionV1>
Source§type Connection = GraphSession<AsyncTransport<Compat<TcpStream>, Sleep, H>>
type Connection = GraphSession<AsyncTransport<Compat<TcpStream>, Sleep, H>>
The connection type this manager deals with.
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.
Source§impl<H> ManageConnection for GraphConnectionManager<TokioTcpStream, TokioSleep, H, VersionV2>
impl<H> ManageConnection for GraphConnectionManager<TokioTcpStream, TokioSleep, H, VersionV2>
Source§type Connection = GraphSession<AsyncTransport<Compat<TcpStream>, Sleep, H>>
type Connection = GraphSession<AsyncTransport<Compat<TcpStream>, Sleep, H>>
The connection type this manager deals with.
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.
Source§impl<H> ManageConnection for GraphConnectionManager<TokioTcpStream, TokioSleep, H, VersionV3>
impl<H> ManageConnection for GraphConnectionManager<TokioTcpStream, TokioSleep, H, VersionV3>
Source§type Connection = GraphSession<AsyncTransport<Compat<TcpStream>, Sleep, H>>
type Connection = GraphSession<AsyncTransport<Compat<TcpStream>, Sleep, H>>
The connection type this manager deals with.
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<S, SLEEP, H, V> Freeze for GraphConnectionManager<S, SLEEP, H, V>where
H: Freeze,
impl<S, SLEEP, H, V> RefUnwindSafe for GraphConnectionManager<S, SLEEP, H, V>
impl<S, SLEEP, H, V> Send for GraphConnectionManager<S, SLEEP, H, V>
impl<S, SLEEP, H, V> Sync for GraphConnectionManager<S, SLEEP, H, V>
impl<S, SLEEP, H, V> Unpin for GraphConnectionManager<S, SLEEP, H, V>
impl<S, SLEEP, H, V> UnwindSafe for GraphConnectionManager<S, SLEEP, H, V>
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