fn rpc_replica_to_bus(
    rpc_replica: &rpc::mayastor::Replica,
    id: NodeId,
) -> Replica {
    let rpc_replica = rpc_replica.clone();
    Replica {
        node: id,
        uuid: rpc_replica.uuid.into(),
        pool: rpc_replica.pool.into(),
        thin: rpc_replica.thin,
        size: rpc_replica.size,
        share: rpc_replica.share.into(),
        uri: rpc_replica.uri,
    }
}
/// convert rpc replica to a message bus replica
convert rpc replica to a message bus replica
convert rpc replica to a message bus replica
fn rpc_replica_to_bus(
    rpc_replica: &rpc::mayastor::Replica,
    id: NodeId,
) -> Replica {
    let rpc_replica = rpc_replica.clone();
    Replica {
        node: id,
        uuid: rpc_replica.uuid.into(),
        pool: rpc_replica.pool.into(),
        thin: rpc_replica.thin,
        size: rpc_replica.size,
        share: rpc_replica.share.into(),
        uri: rpc_replica.uri,
    }
}
fn rpc_replica_to_bus ( rpc_replica : & rpc :: mayastor :: Replica , id : NodeId , ) -> Replica { let rpc_replica = rpc_replica . clone ( ) ; Replica { node : id , uuid : rpc_replica . uuid . into ( ) , pool : rpc_replica . pool . into ( ) , thin : rpc_replica . thin , size : rpc_replica . size , share : rpc_replica . share . into ( ) , uri : rpc_replica . uri , } }
convert rpc replica to a message bus replica
convert rpc replica to a message bus replica
rpc_replica
&rpc::mayastor::Replica
id
NodeId