pub async fn nexus_destroy(uuid: &str) -> Result<(), Error> {
    if let Ok(n) = nexus_lookup(uuid) {
        let result = n.destroy().await;
        if result.is_ok() {
            info!("Nexus {} destroyed", uuid)
        } else {
            return result;
        }
    };
    Ok(())
}
/// Idempotent destruction of the nexus.
Idempotent destruction of the nexus.
Idempotent destruction of the nexus .
pub async fn nexus_destroy(uuid: &str) -> Result<(), Error> {
    if let Ok(n) = nexus_lookup(uuid) {
        let result = n.destroy().await;
        if result.is_ok() {
            info!("Nexus {} destroyed", uuid)
        } else {
            return result;
        }
    };
    Ok(())
}
pub async fn nexus_destroy ( uuid : & str ) -> Result < ( ) , Error > { if let Ok ( n ) = nexus_lookup ( uuid ) { let result = n . destroy ( ) . await ; if result . is_ok ( ) { info ! ( " " uuid ) } else { return result ; } } ; Ok ( ( ) ) }
Idempotent destruction of the nexus.
Idempotent destruction of the nexus .
uuid
&str