fn bus_replica_to_rpc(
    request: &CreateReplica,
) -> rpc::mayastor::CreateReplicaRequest {
    let request = request.clone();
    rpc::mayastor::CreateReplicaRequest {
        uuid: request.uuid.into(),
        pool: request.pool.into(),
        thin: request.thin,
        size: request.size,
        share: request.share as i32,
    }
}
/// convert a message bus replica to an rpc replica
convert a message bus replica to an rpc replica
convert a message bus replica to an rpc replica
fn bus_replica_to_rpc(
    request: &CreateReplica,
) -> rpc::mayastor::CreateReplicaRequest {
    let request = request.clone();
    rpc::mayastor::CreateReplicaRequest {
        uuid: request.uuid.into(),
        pool: request.pool.into(),
        thin: request.thin,
        size: request.size,
        share: request.share as i32,
    }
}
fn bus_replica_to_rpc ( request : & CreateReplica , ) -> rpc :: mayastor :: CreateReplicaRequest { let request = request . clone ( ) ; rpc :: mayastor :: CreateReplicaRequest { uuid : request . uuid . into ( ) , pool : request . pool . into ( ) , thin : request . thin , size : request . size , share : request . share as i32 , } }
convert a message bus replica to an rpc replica
convert a message bus replica to an rpc replica
request
&CreateReplica