pub async fn list_node_replicas(&self, node: &NodeId) -> Vec<Replica> {
        let nodes = self.list_nodes_wrapper().await;
        if let Some(node) = nodes.iter().find(|&n| &n.id() == node) {
            node.replicas()
        } else {
            // or return error, node not found?
            vec![]
        }
    }
/// List all cached replicas from node
List all cached replicas from node
List all cached replicas from node
pub async fn list_node_replicas(&self, node: &NodeId) -> Vec<Replica> {
        let nodes = self.list_nodes_wrapper().await;
        if let Some(node) = nodes.iter().find(|&n| &n.id() == node) {
            node.replicas()
        } else {
            // or return error, node not found?
            vec![]
        }
    }
pub async fn list_node_replicas ( & self , node : & NodeId ) -> Vec < Replica > { let nodes = self . list_nodes_wrapper ( ) . await ; if let Some ( node ) = nodes . iter ( ) . find ( | & n | & n . id ( ) == node ) { node . replicas ( ) } else { // or return error, node not found? vec ! [ ] } }
List all cached replicas from node
List all cached replicas from node
&self
node
&NodeId