[][src]Struct elasticsearch::cluster::Cluster

pub struct Cluster<'a> { /* fields omitted */ }

Namespace client for Cluster APIs

Methods

impl<'a> Cluster<'a>[src]

pub fn new(client: &'a Elasticsearch) -> Self[src]

Creates a new instance of Cluster

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

Provides explanations for shard allocations in the cluster.

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

Returns cluster settings.

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

Returns basic information about the health of the cluster.

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

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

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

Updates the cluster settings.

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

Returns the information about configured remote clusters.

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

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

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

Returns a comprehensive information about the state of the cluster.

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

Returns high-level overview of cluster statistics.

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.