pub struct ClusterHandle { /* private fields */ }Expand description
Owns the cluster’s live background resources. Dropping it stops the membership poll loop and tears down the inbound distribution listener.
Implementations§
Source§impl ClusterHandle
impl ClusterHandle
Sourcepub fn listen_addr(&self) -> SocketAddr
pub fn listen_addr(&self) -> SocketAddr
The address the distribution listener bound for inbound peer links.
Sourcepub const fn membership(&self) -> &Membership
pub const fn membership(&self) -> &Membership
The membership tracker, for inspection and tests.
Trait Implementations§
Source§impl Debug for ClusterHandle
impl Debug for ClusterHandle
Source§impl Drop for ClusterHandle
impl Drop for ClusterHandle
Auto Trait Implementations§
impl !RefUnwindSafe for ClusterHandle
impl !UnwindSafe for ClusterHandle
impl Freeze for ClusterHandle
impl Send for ClusterHandle
impl Sync for ClusterHandle
impl Unpin for ClusterHandle
impl UnsafeUnpin for ClusterHandle
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