pub struct ClusterDaemonHandle { /* private fields */ }Expand description
Public handle to a running ClusterDaemon.
Implementations§
Source§impl ClusterDaemonHandle
impl ClusterDaemonHandle
pub fn join(&self, m: Member)
pub fn leave(&self, addr: Address)
pub fn apply_gossip(&self, pdu: GossipPdu)
pub fn tick(&self)
pub fn snapshot(&self) -> DaemonSnapshot
pub fn events(&self) -> &ClusterEventBus
pub fn address(&self) -> &Address
Sourcepub fn gossip_inbox(&self) -> UnboundedSender<GossipPdu>
pub fn gossip_inbox(&self) -> UnboundedSender<GossipPdu>
Cheaply-cloneable inbox that delivers GossipPdus into this
daemon. Used by transport adapters that need to fan inbound
PDUs into the daemon without holding the ClusterDaemonHandle
itself (which is consume-on-shutdown).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClusterDaemonHandle
impl !RefUnwindSafe for ClusterDaemonHandle
impl Send for ClusterDaemonHandle
impl Sync for ClusterDaemonHandle
impl Unpin for ClusterDaemonHandle
impl UnsafeUnpin for ClusterDaemonHandle
impl !UnwindSafe for ClusterDaemonHandle
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