pub struct SingleNodeConnectionPool { /* private fields */ }
Expand description
A connection pool that manages the single connection to an Elasticsearch cluster.
Implementations§
Source§impl SingleNodeConnectionPool
impl SingleNodeConnectionPool
Sourcepub fn new(url: Url) -> Self
pub fn new(url: Url) -> Self
Creates a new instance of SingleNodeConnectionPool.
Trait Implementations§
Source§impl Clone for SingleNodeConnectionPool
impl Clone for SingleNodeConnectionPool
Source§fn clone(&self) -> SingleNodeConnectionPool
fn clone(&self) -> SingleNodeConnectionPool
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 ConnectionPool for SingleNodeConnectionPool
impl ConnectionPool for SingleNodeConnectionPool
Source§fn next(&self) -> &Connection
fn next(&self) -> &Connection
Gets a reference to the next Connection
Source§impl Debug for SingleNodeConnectionPool
impl Debug for SingleNodeConnectionPool
Source§impl Default for SingleNodeConnectionPool
impl Default for SingleNodeConnectionPool
Source§fn default() -> Self
fn default() -> Self
Creates a default instance of SingleNodeConnectionPool, using DEFAULT_ADDRESS.
Auto Trait Implementations§
impl Freeze for SingleNodeConnectionPool
impl RefUnwindSafe for SingleNodeConnectionPool
impl Send for SingleNodeConnectionPool
impl Sync for SingleNodeConnectionPool
impl Unpin for SingleNodeConnectionPool
impl UnwindSafe for SingleNodeConnectionPool
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