Struct etcd_client::MaintenanceClient[][src]

#[repr(transparent)]
pub struct MaintenanceClient { /* fields omitted */ }

Client for maintenance operations.

Implementations

impl MaintenanceClient[src]

pub async fn alarm(
    &mut self,
    alarm_action: AlarmAction,
    alarm_type: AlarmType,
    options: Option<AlarmOptions>
) -> Result<AlarmResponse, Error>
[src]

Get or active or inactive alarm.

pub async fn status(&mut self) -> Result<StatusResponse, Error>[src]

Get status of a member.

pub async fn defragment(&mut self) -> Result<DefragmentResponse, Error>[src]

Defragment a member’s backend database to recover storage space.

pub async fn hash(&mut self) -> Result<HashResponse, Error>[src]

Computes the hash of whole backend keyspace. including key, lease, and other buckets in storage. This is designed for testing ONLY!

pub async fn hash_kv(&mut self, revision: i64) -> Result<HashKvResponse, Error>[src]

Computes the hash of all MVCC keys up to a given revision. It only iterates "key" bucket in backend storage.

pub async fn snapshot(&mut self) -> Result<SnapshotStreaming, Error>[src]

Gets a snapshot of the entire backend from a member over a stream to a client.

pub async fn move_leader(
    &mut self,
    target_id: u64
) -> Result<MoveLeaderResponse, Error>
[src]

Moves the current leader node to target node.

Trait Implementations

impl Clone for MaintenanceClient[src]

Auto Trait Implementations

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> Instrument for T[src]

impl<T> Instrument for T[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]