pub fn nexus_lookup(uuid: &str) -> Result<&mut Nexus, Error> {
    let name = uuid_to_name(uuid)?;

    if let Some(nexus) = instances().iter_mut().find(|n| n.name == name) {
        Ok(nexus)
    } else {
        Err(Error::NexusNotFound {
            name: uuid.to_owned(),
        })
    }
}
/// Lookup a nexus by its uuid prepending "nexus-" prefix. Return error if
/// uuid is invalid or nexus not found.
Lookup a nexus by its uuid prepending "nexus-" prefix. Return error if
uuid is invalid or nexus not found.
Lookup a nexus by its uuid prepending " nexus - " prefix . Return error if uuid is invalid or nexus not found .
pub fn nexus_lookup(uuid: &str) -> Result<&mut Nexus, Error> {
    let name = uuid_to_name(uuid)?;
    if let Some(nexus) = instances().iter_mut().find(|n| n.name == name) {
        Ok(nexus)
    } else {
        Err(Error::NexusNotFound {
            name: uuid.to_owned(),
        })
    }
}
pub fn nexus_lookup ( uuid : & str ) -> Result < & mut Nexus , Error > { let name = uuid_to_name ( uuid ) ? ; if let Some ( nexus ) = instances ( ) . iter_mut ( ) . find ( | n | n . name == name ) { Ok ( nexus ) } else { Err ( Error :: NexusNotFound { name : uuid . to_owned ( ) , } ) } }
Lookup a nexus by its uuid prepending "nexus-" prefix.
Lookup a nexus by its uuid prepending " nexus - " prefix .
uuid
&str