Trait common_meta::cluster::ClusterInfo

source ·
pub trait ClusterInfo {
    type Error: ErrorExt;

    // Required method
    fn list_nodes<'life0, 'async_trait>(
        &'life0 self,
        role: Option<Role>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<NodeInfo>, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

ClusterInfo provides information about the cluster.

Required Associated Types§

source

type Error: ErrorExt

Required Methods§

source

fn list_nodes<'life0, 'async_trait>( &'life0 self, role: Option<Role>, ) -> Pin<Box<dyn Future<Output = Result<Vec<NodeInfo>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List all nodes by role in the cluster. If role is None, list all nodes.

Implementors§