fn rpc_pool_to_bus(rpc_pool: &rpc::mayastor::Pool, id: NodeId) -> Pool {
    let rpc_pool = rpc_pool.clone();
    Pool {
        node: id,
        id: rpc_pool.name.into(),
        disks: rpc_pool.disks.clone(),
        state: rpc_pool.state.into(),
        capacity: rpc_pool.capacity,
        used: rpc_pool.used,
    }
}
/// convert rpc pool to a message bus pool
convert rpc pool to a message bus pool
convert rpc pool to a message bus pool
fn rpc_pool_to_bus(rpc_pool: &rpc::mayastor::Pool, id: NodeId) -> Pool {
    let rpc_pool = rpc_pool.clone();
    Pool {
        node: id,
        id: rpc_pool.name.into(),
        disks: rpc_pool.disks.clone(),
        state: rpc_pool.state.into(),
        capacity: rpc_pool.capacity,
        used: rpc_pool.used,
    }
}
fn rpc_pool_to_bus ( rpc_pool : & rpc :: mayastor :: Pool , id : NodeId ) -> Pool { let rpc_pool = rpc_pool . clone ( ) ; Pool { node : id , id : rpc_pool . name . into ( ) , disks : rpc_pool . disks . clone ( ) , state : rpc_pool . state . into ( ) , capacity : rpc_pool . capacity , used : rpc_pool . used , } }
convert rpc pool to a message bus pool
convert rpc pool to a message bus pool
rpc_pool
&rpc::mayastor::Pool
id
NodeId