pub struct ClickhouseConnectionManager { /* private fields */ }Implementations§
Source§impl ClickhouseConnectionManager
impl ClickhouseConnectionManager
pub fn new( config: Arc<ClickhouseConfig>, metrics: Option<SharedRegistrar>, ) -> Self
pub fn initiate_shutdown(&self)
pub fn create_client(&self) -> Result<Client, ClickhouseError>
Trait Implementations§
Source§impl Debug for ClickhouseConnectionManager
impl Debug for ClickhouseConnectionManager
Source§impl Manager for ClickhouseConnectionManager
impl Manager for ClickhouseConnectionManager
Source§type Type = ClickhouseConnection
type Type = ClickhouseConnection
Type of
super::Objects that this Manager creates and recycles.Source§type Error = ClickhouseError
type Error = ClickhouseError
Error that this
Manager can return when creating and/or recycling
super::Objects.Source§async fn create(&self) -> Result<Self::Type, Self::Error>
async fn create(&self) -> Result<Self::Type, Self::Error>
Creates a new instance of
Manager::Type.Auto Trait Implementations§
impl !Freeze for ClickhouseConnectionManager
impl !RefUnwindSafe for ClickhouseConnectionManager
impl Send for ClickhouseConnectionManager
impl Sync for ClickhouseConnectionManager
impl Unpin for ClickhouseConnectionManager
impl UnsafeUnpin 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