pub struct ClickHouseConnectionManager { /* private fields */ }Expand description
An r2d2::ManageConnection for clickhouse::Client
Implementations§
Trait Implementations§
Source§impl Clone for ClickHouseConnectionManager
impl Clone for ClickHouseConnectionManager
Source§fn clone(&self) -> ClickHouseConnectionManager
fn clone(&self) -> ClickHouseConnectionManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ManageConnection for ClickHouseConnectionManager
impl ManageConnection for ClickHouseConnectionManager
Source§type Connection = ClickHouseConnection
type Connection = ClickHouseConnection
The connection type this manager deals with.
Source§fn connect(&self) -> Result<Self::Connection, Self::Error>
fn connect(&self) -> Result<Self::Connection, Self::Error>
Attempts to create a new connection.
Source§fn is_valid(&self, conn: &mut Self::Connection) -> Result<(), Self::Error>
fn is_valid(&self, conn: &mut Self::Connection) -> Result<(), Self::Error>
Determines if the connection is still connected to the database. Read more
Source§fn has_broken(&self, _conn: &mut Self::Connection) -> bool
fn has_broken(&self, _conn: &mut Self::Connection) -> bool
Quickly determines if the connection is no longer usable. Read more
Auto Trait Implementations§
impl Freeze for ClickHouseConnectionManager
impl !RefUnwindSafe for ClickHouseConnectionManager
impl Send for ClickHouseConnectionManager
impl Sync for ClickHouseConnectionManager
impl Unpin for ClickHouseConnectionManager
impl !UnwindSafe for ClickHouseConnectionManager
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