Struct etcd_client::ClusterClient [−][src]
#[repr(transparent)]pub struct ClusterClient { /* fields omitted */ }
Client for Cluster operations.
Implementations
impl ClusterClient
[src]
impl ClusterClient
[src]pub async fn member_add(
&mut self,
urls: impl Into<Vec<String>>,
options: Option<MemberAddOptions>
) -> Result<MemberAddResponse, Error>
[src]
&mut self,
urls: impl Into<Vec<String>>,
options: Option<MemberAddOptions>
) -> Result<MemberAddResponse, Error>
Adds a new member into the cluster.
pub async fn member_remove(
&mut self,
id: u64
) -> Result<MemberRemoveResponse, Error>
[src]
&mut self,
id: u64
) -> Result<MemberRemoveResponse, Error>
Removes an existing member from the cluster.
pub async fn member_update(
&mut self,
id: u64,
url: impl Into<Vec<String>>
) -> Result<MemberUpdateResponse, Error>
[src]
&mut self,
id: u64,
url: impl Into<Vec<String>>
) -> Result<MemberUpdateResponse, Error>
Updates the member configuration.
pub async fn member_list(&mut self) -> Result<MemberListResponse, Error>
[src]
Lists all the members in the cluster.
pub async fn member_promote(
&mut self,
id: u64
) -> Result<MemberPromoteResponse, Error>
[src]
&mut self,
id: u64
) -> Result<MemberPromoteResponse, Error>
Promotes a member from raft learner (non-voting) to raft voting member.
Trait Implementations
impl Clone for ClusterClient
[src]
impl Clone for ClusterClient
[src]fn clone(&self) -> ClusterClient
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl !RefUnwindSafe for ClusterClient
impl !RefUnwindSafe for ClusterClient
impl Send for ClusterClient
impl Send for ClusterClient
impl Sync for ClusterClient
impl Sync for ClusterClient
impl Unpin for ClusterClient
impl Unpin for ClusterClient
impl !UnwindSafe for ClusterClient
impl !UnwindSafe for ClusterClient
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> IntoRequest<T> for T
[src]
impl<T> IntoRequest<T> for T
[src]pub fn into_request(self) -> Request<T>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
impl<T> WithSubscriber for T
[src]pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,