pub struct ClusterRemoteAdapter { /* private fields */ }Implementations§
Source§impl ClusterRemoteAdapter
impl ClusterRemoteAdapter
pub async fn start( system: ActorSystem, bind: SocketAddr, settings: RemoteSettings, ) -> Result<Self, TransportError>
pub fn self_address(&self) -> &Address
pub fn cluster_ref(&self) -> &ActorRef<Gossip>
Sourcepub async fn send_gossip(&self, peer: &Address) -> Result<(), TransportError>
pub async fn send_gossip(&self, peer: &Address) -> Result<(), TransportError>
Push our current gossip state at peer.
Sourcepub fn update_local<F>(&self, f: F)
pub fn update_local<F>(&self, f: F)
Update the local gossip — typically a tick of the local clock and a member-status change.
pub fn snapshot(&self) -> Gossip
Sourcepub fn mark_unreachable(&self, observer: &Address, peer: &Address)
pub fn mark_unreachable(&self, observer: &Address, peer: &Address)
Mark peer unreachable in our local membership state. Driven by
the failure detector registry inside the underlying
EndpointManager.
Sourcepub fn refresh_reachability(&self)
pub fn refresh_reachability(&self)
Periodic heartbeat: poll the remote failure detector registry and flag any peer that has gone unavailable as unreachable.
pub async fn shutdown(&self)
Trait Implementations§
Source§impl Clone for ClusterRemoteAdapter
impl Clone for ClusterRemoteAdapter
Source§fn clone(&self) -> ClusterRemoteAdapter
fn clone(&self) -> ClusterRemoteAdapter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ClusterRemoteAdapter
impl !RefUnwindSafe for ClusterRemoteAdapter
impl Send for ClusterRemoteAdapter
impl Sync for ClusterRemoteAdapter
impl Unpin for ClusterRemoteAdapter
impl UnsafeUnpin for ClusterRemoteAdapter
impl !UnwindSafe for ClusterRemoteAdapter
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