async fn nexus_create_and_publish(
    hdl: &mut RpcHandle,
    uuid: String,
    size: u64,
    children: Vec<String>,
) -> String {
    hdl.mayastor
        .create_nexus(CreateNexusRequest {
            uuid: uuid.clone(),
            size,
            children,
        })
        .await
        .unwrap();
    hdl.mayastor
        .publish_nexus(PublishNexusRequest {
            uuid: uuid.clone(),
            key: "".into(),
            share: ShareProtocolNexus::NexusNvmf as i32,
        })
        .await
        .unwrap()
        .into_inner()
        .device_uri
}
/// Create and publish a nexus with the given uuid and size.
/// The nexus is published over NVMf and the nexus uri is returned.
Create and publish a nexus with the given uuid and size.
The nexus is published over NVMf and the nexus uri is returned.
Create and publish a nexus with the given uuid and size . The nexus is published over NVMf and the nexus uri is returned .
async fn nexus_create_and_publish(
    hdl: &mut RpcHandle,
    uuid: String,
    size: u64,
    children: Vec<String>,
) -> String {
    hdl.mayastor
        .create_nexus(CreateNexusRequest {
            uuid: uuid.clone(),
            size,
            children,
        })
        .await
        .unwrap();
    hdl.mayastor
        .publish_nexus(PublishNexusRequest {
            uuid: uuid.clone(),
            key: "".into(),
            share: ShareProtocolNexus::NexusNvmf as i32,
        })
        .await
        .unwrap()
        .into_inner()
        .device_uri
}
async fn nexus_create_and_publish ( hdl : & mut RpcHandle , uuid : String , size : u64 , children : Vec < String > , ) -> String { hdl . mayastor . create_nexus ( CreateNexusRequest { uuid : uuid . clone ( ) , size , children , } ) . await . unwrap ( ) ; hdl . mayastor . publish_nexus ( PublishNexusRequest { uuid : uuid . clone ( ) , key : " " . into ( ) , share : ShareProtocolNexus :: NexusNvmf as i32 , } ) . await . unwrap ( ) . into_inner ( ) . device_uri }
Create and publish a nexus with the given uuid and size.
Create and publish a nexus with the given uuid and size .
hdl
&mut RpcHandle
uuid
String
size
u64
children
Vec<String>