pub struct NoopClusterAdmin;Expand description
ClusterAdmin that always reports an empty cluster and
rejects mutations. Used by callers that have not wired the
real admin surface.
Trait Implementations§
Source§impl ClusterAdmin for NoopClusterAdmin
impl ClusterAdmin for NoopClusterAdmin
Source§fn list_peers(&self) -> Vec<PeerSnapshot>
fn list_peers(&self) -> Vec<PeerSnapshot>
Snapshot of every peer the gossip layer has seen.
Source§fn cluster_join(&self, _target: SocketAddr) -> Result<JoinPlan, ClusterError>
fn cluster_join(&self, _target: SocketAddr) -> Result<JoinPlan, ClusterError>
Stage a Add change for
target and return the plan. Read moreSource§fn cluster_leave(&self, _peer_idx: u32) -> Result<JoinPlan, ClusterError>
fn cluster_leave(&self, _peer_idx: u32) -> Result<JoinPlan, ClusterError>
Stage a Remove change for
peer_idx and return the plan. Read moreSource§fn cluster_plan_pending(&self) -> Vec<ClusterChange>
fn cluster_plan_pending(&self) -> Vec<ClusterChange>
Snapshot of every staged-but-uncommitted change.
Source§fn cluster_commit(&self) -> Result<(), ClusterError>
fn cluster_commit(&self) -> Result<(), ClusterError>
Apply every staged change and clear the staging list. Read more
Source§impl Debug for NoopClusterAdmin
impl Debug for NoopClusterAdmin
Source§impl Default for NoopClusterAdmin
impl Default for NoopClusterAdmin
Source§fn default() -> NoopClusterAdmin
fn default() -> NoopClusterAdmin
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NoopClusterAdmin
impl RefUnwindSafe for NoopClusterAdmin
impl Send for NoopClusterAdmin
impl Sync for NoopClusterAdmin
impl Unpin for NoopClusterAdmin
impl UnsafeUnpin for NoopClusterAdmin
impl UnwindSafe for NoopClusterAdmin
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more