Struct etcd_client::ClusterClient
source · [−]#[repr(transparent)]pub struct ClusterClient { /* private fields */ }Expand description
Client for Cluster operations.
Implementations
sourceimpl ClusterClient
impl ClusterClient
sourcepub async fn member_add(
&mut self,
urls: impl Into<Vec<String>>,
options: Option<MemberAddOptions>
) -> Result<MemberAddResponse, Error>
pub async fn member_add(
&mut self,
urls: impl Into<Vec<String>>,
options: Option<MemberAddOptions>
) -> Result<MemberAddResponse, Error>
Adds a new member into the cluster.
sourcepub async fn member_remove(
&mut self,
id: u64
) -> Result<MemberRemoveResponse, Error>
pub async fn member_remove(
&mut self,
id: u64
) -> Result<MemberRemoveResponse, Error>
Removes an existing member from the cluster.
sourcepub async fn member_update(
&mut self,
id: u64,
url: impl Into<Vec<String>>
) -> Result<MemberUpdateResponse, Error>
pub async fn member_update(
&mut self,
id: u64,
url: impl Into<Vec<String>>
) -> Result<MemberUpdateResponse, Error>
Updates the member configuration.
sourcepub async fn member_list(&mut self) -> Result<MemberListResponse, Error>
pub async fn member_list(&mut self) -> Result<MemberListResponse, Error>
Lists all the members in the cluster.
sourcepub async fn member_promote(
&mut self,
id: u64
) -> Result<MemberPromoteResponse, Error>
pub async fn member_promote(
&mut self,
id: u64
) -> Result<MemberPromoteResponse, Error>
Promotes a member from raft learner (non-voting) to raft voting member.
Trait Implementations
sourceimpl Clone for ClusterClient
impl Clone for ClusterClient
sourcefn clone(&self) -> ClusterClient
fn clone(&self) -> ClusterClient
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 more
Auto Trait Implementations
impl !RefUnwindSafe for ClusterClient
impl Send for ClusterClient
impl Sync for ClusterClient
impl Unpin for ClusterClient
impl !UnwindSafe for ClusterClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message T in a tonic::Request
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more