Struct Cluster

Source
pub struct Cluster<'a> { /* private fields */ }
Expand description

Namespace client for Cluster APIs

Implementations§

Source§

impl<'a> Cluster<'a>

Source

pub fn new(transport: &'a Transport) -> Self

Creates a new instance of Cluster

Source

pub fn transport(&self) -> &Transport

Source

pub fn allocation_explain<'b>(&'a self) -> ClusterAllocationExplain<'a, 'b, ()>

Cluster Allocation Explain API

Provides explanations for shard allocations in the cluster.

Source

pub fn delete_component_template<'b>( &'a self, parts: ClusterDeleteComponentTemplateParts<'b>, ) -> ClusterDeleteComponentTemplate<'a, 'b>

Cluster Delete Component Template API

Deletes a component template

Source

pub fn delete_voting_config_exclusions<'b>( &'a self, ) -> ClusterDeleteVotingConfigExclusions<'a, 'b>

Cluster Delete Voting Config Exclusions API

Clears cluster voting config exclusions.

Source

pub fn exists_component_template<'b>( &'a self, parts: ClusterExistsComponentTemplateParts<'b>, ) -> ClusterExistsComponentTemplate<'a, 'b>

Cluster Exists Component Template API

Returns information about whether a particular component template exist

Source

pub fn get_component_template<'b>( &'a self, parts: ClusterGetComponentTemplateParts<'b>, ) -> ClusterGetComponentTemplate<'a, 'b>

Cluster Get Component Template API

Returns one or more component templates

Source

pub fn get_settings<'b>(&'a self) -> ClusterGetSettings<'a, 'b>

Cluster Get Settings API

Returns cluster settings.

Source

pub fn health<'b>( &'a self, parts: ClusterHealthParts<'b>, ) -> ClusterHealth<'a, 'b>

Cluster Health API

Returns basic information about the health of the cluster.

Source

pub fn pending_tasks<'b>(&'a self) -> ClusterPendingTasks<'a, 'b>

Cluster Pending Tasks API

Returns a list of any cluster-level changes (e.g. create index, update mapping, allocate or fail shard) which have not yet been executed.

Source

pub fn post_voting_config_exclusions<'b>( &'a self, ) -> ClusterPostVotingConfigExclusions<'a, 'b, ()>

Cluster Post Voting Config Exclusions API

Updates the cluster voting config exclusions by node ids or node names.

Source

pub fn put_component_template<'b>( &'a self, parts: ClusterPutComponentTemplateParts<'b>, ) -> ClusterPutComponentTemplate<'a, 'b, ()>

Cluster Put Component Template API

Creates or updates a component template

Source

pub fn put_settings<'b>(&'a self) -> ClusterPutSettings<'a, 'b, ()>

Cluster Put Settings API

Updates the cluster settings.

Source

pub fn remote_info<'b>(&'a self) -> ClusterRemoteInfo<'a, 'b>

Cluster Remote Info API

Returns the information about configured remote clusters.

Source

pub fn reroute<'b>(&'a self) -> ClusterReroute<'a, 'b, ()>

Cluster Reroute API

Allows to manually change the allocation of individual shards in the cluster.

Source

pub fn state<'b>(&'a self, parts: ClusterStateParts<'b>) -> ClusterState<'a, 'b>

Cluster State API

Returns a comprehensive information about the state of the cluster.

Source

pub fn stats<'b>(&'a self, parts: ClusterStatsParts<'b>) -> ClusterStats<'a, 'b>

Cluster Stats API

Returns high-level overview of cluster statistics.

Auto Trait Implementations§

§

impl<'a> Freeze for Cluster<'a>

§

impl<'a> !RefUnwindSafe for Cluster<'a>

§

impl<'a> Send for Cluster<'a>

§

impl<'a> Sync for Cluster<'a>

§

impl<'a> Unpin for Cluster<'a>

§

impl<'a> !UnwindSafe for Cluster<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,