async fn share_nvmf(
        &self,
        cntlid_range: Option<(u16, u16)>,
    ) -> Result<Self::Output, Self::Error> {
        let subsystem =
            NvmfSubsystem::try_from(self.clone()).context(ShareNvmf {})?;
        if let Some((cntlid_min, cntlid_max)) = cntlid_range {
            subsystem
                .set_cntlid_range(cntlid_min, cntlid_max)
                .context(ShareNvmf {})?;
        }
        subsystem.start().await.context(ShareNvmf {})
    }
/// share the bdev over NVMe-OF TCP
share the bdev over NVMe-OF TCP
share the bdev over NVMe - OF TCP
async fn share_nvmf(
        &self,
        cntlid_range: Option<(u16, u16)>,
    ) -> Result<Self::Output, Self::Error> {
        let subsystem =
            NvmfSubsystem::try_from(self.clone()).context(ShareNvmf {})?;
        if let Some((cntlid_min, cntlid_max)) = cntlid_range {
            subsystem
                .set_cntlid_range(cntlid_min, cntlid_max)
                .context(ShareNvmf {})?;
        }
        subsystem.start().await.context(ShareNvmf {})
    }
async fn share_nvmf ( & self , cntlid_range : Option < ( u16 , u16 ) > , ) -> Result < Self :: Output , Self :: Error > { let subsystem = NvmfSubsystem :: try_from ( self . clone ( ) ) . context ( ShareNvmf { } ) ? ; if let Some ( ( cntlid_min , cntlid_max ) ) = cntlid_range { subsystem . set_cntlid_range ( cntlid_min , cntlid_max ) . context ( ShareNvmf { } ) ? ; } subsystem . start ( ) . await . context ( ShareNvmf { } ) }
share the bdev over NVMe-OF TCP
share the bdev over NVMe - OF TCP
&self
cntlid_range
Option<(u16, u16)>