/// number of spus in rack count
number of spus in rack count
number of spus in rack count
async fn spus_in_rack_count(&self) -> i32 {
        self.read()
            .await
            .values()
            .filter_map(|spu| {
                if spu.spec.rack.is_some() {
                    Some(1)
                } else {
                    None
                }
            })
            .sum()
    }
async fn spus_in_rack_count ( & self ) -> i32 { self . read ( ) . await . values ( ) . filter_map ( | spu | { if spu . spec . rack . is_some ( ) { Some ( 1 ) } else { None } } ) . sum ( ) }
number of spus in rack count
number of spus in rack count
&self