pub async fn list_volumes(volume_directory: &Directory<ObjectStore>) -> Result<Vec<u64>, Error> {
    let layer_set = volume_directory.store().tree().layer_set();
    let mut merger = layer_set.merger();
    let mut iter = volume_directory.iter(&mut merger).await?;
    let mut object_ids = vec![];
    while let Some((_, id, _)) = iter.get() {
        object_ids.push(id);
        iter.advance().await?;
    }
    Ok(object_ids)
}
/// Returns the object IDs for all volumes.
Returns the object IDs for all volumes.
Returns the object IDs for all volumes .
pub async fn list_volumes(volume_directory: &Directory<ObjectStore>) -> Result<Vec<u64>, Error> {
    let layer_set = volume_directory.store().tree().layer_set();
    let mut merger = layer_set.merger();
    let mut iter = volume_directory.iter(&mut merger).await?;
    let mut object_ids = vec![];
    while let Some((_, id, _)) = iter.get() {
        object_ids.push(id);
        iter.advance().await?;
    }
    Ok(object_ids)
}
pub async fn list_volumes ( volume_directory : & Directory < ObjectStore > ) -> Result < Vec < u64 > , Error > { let layer_set = volume_directory . store ( ) . tree ( ) . layer_set ( ) ; let mut merger = layer_set . merger ( ) ; let mut iter = volume_directory . iter ( & mut merger ) . await ? ; let mut object_ids = vec ! [ ] ; while let Some ( ( _ , id , _ ) ) = iter . get ( ) { object_ids . push ( id ) ; iter . advance ( ) . await ? ; } Ok ( object_ids ) }
Returns the object IDs for all volumes.
Returns the object IDs for all volumes .
volume_directory
&Directory<ObjectStore>
volume_directory
&Directory<ObjectStore>