Trait DistCluster
Source pub trait DistCluster:
Debug
+ Send
+ Sync {
// Required methods
fn heartbeat<'life0, 'async_trait>(
&'life0 self,
node_id: NodeId,
state: NodeState,
) -> Pin<Box<dyn Future<Output = DistResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn alive_nodes<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = DistResult<HashMap<NodeId, NodeState>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}