Struct taos::TaosBuilder
source · pub struct TaosBuilder(/* private fields */);
Trait Implementations§
source§impl AsyncTBuilder for TaosBuilder
impl AsyncTBuilder for TaosBuilder
type Target = Taos
source§fn from_dsn<D: IntoDsn>(dsn: D) -> RawResult<Self>
fn from_dsn<D: IntoDsn>(dsn: D) -> RawResult<Self>
Connect with dsn without connection checking.
source§fn client_version() -> &'static str
fn client_version() -> &'static str
Get client version.
source§fn ping<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Target
) -> Pin<Box<dyn Future<Output = RawResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn ping<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Target
) -> Pin<Box<dyn Future<Output = RawResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check a connection is still alive.
source§fn ready<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn ready<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Check if it’s ready to connect. Read more
source§fn build<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = RawResult<Self::Target>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn build<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = RawResult<Self::Target>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a new connection from this struct.
source§fn pool(self) -> Result<Pool<Manager<Self>>, Error>
fn pool(self) -> Result<Pool<Manager<Self>>, Error>
Build connection pool with deadpool::managed::Pool. Read more
source§fn pool_builder(self) -> PoolBuilder<Manager<Self>>
fn pool_builder(self) -> PoolBuilder<Manager<Self>>
deadpool::managed::PoolBuilder generation from config.
fn default_pool_config(&self) -> PoolConfig
source§fn with_pool_config(
self,
config: PoolConfig
) -> Result<Pool<Manager<Self>>, Error>
fn with_pool_config( self, config: PoolConfig ) -> Result<Pool<Manager<Self>>, Error>
Build connection pool with deadpool::managed::PoolBuilder
source§impl Debug for TaosBuilder
impl Debug for TaosBuilder
source§impl TBuilder for TaosBuilder
impl TBuilder for TaosBuilder
Auto Trait Implementations§
impl !Freeze for TaosBuilder
impl RefUnwindSafe for TaosBuilder
impl Send for TaosBuilder
impl Sync for TaosBuilder
impl Unpin for TaosBuilder
impl UnwindSafe for TaosBuilder
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