Struct uiuifree_elastic::Connection
source · [−]pub struct Connection { /* private fields */ }Expand description
A connection to an Elasticsearch node, used to send an API request
Implementations
sourceimpl Connection
impl Connection
sourcepub fn new(url: Url) -> Connection
pub fn new(url: Url) -> Connection
Creates a new instance of a Connection.
If the passed [url::Url] path does not have a trailing forward slash, a trailing forward slash will be appended
Trait Implementations
sourceimpl Clone for Connection
impl Clone for Connection
sourcefn clone(&self) -> Connection
fn clone(&self) -> Connection
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnwindSafe for Connection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more