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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<H> Manager for GraphConnectionManager<TokioTcpStream, TokioSleep, H, VersionV1>
impl<H> Manager 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 check<'life0, 'async_trait>(
&'life0 self,
conn: Self::Connection,
) -> Pin<Box<dyn Future<Output = Result<Self::Connection, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: '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
Self: 'async_trait,
'life0: 'async_trait,
Determines if the connection is still connected to the database when check-out. Read more
Source§fn 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.
Source§impl<H> Manager for GraphConnectionManager<TokioTcpStream, TokioSleep, H, VersionV2>
impl<H> Manager 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 check<'life0, 'async_trait>(
&'life0 self,
conn: Self::Connection,
) -> Pin<Box<dyn Future<Output = Result<Self::Connection, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: '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
Self: 'async_trait,
'life0: 'async_trait,
Determines if the connection is still connected to the database when check-out. Read more
Source§fn 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.
Source§impl<H> Manager for GraphConnectionManager<TokioTcpStream, TokioSleep, H, VersionV3>
impl<H> Manager 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 check<'life0, 'async_trait>(
&'life0 self,
conn: Self::Connection,
) -> Pin<Box<dyn Future<Output = Result<Self::Connection, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: '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
Self: 'async_trait,
'life0: 'async_trait,
Determines if the connection is still connected to the database when check-out. Read more
Source§fn 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<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> UnsafeUnpin for GraphConnectionManager<S, SLEEP, H, V>where
H: UnsafeUnpin,
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