async fn read_segment(&mut self, segment_id: usize) -> Result<[u8; SEGMENT_SIZE]> {
        let mut bytes = [0; SEGMENT_SIZE];
        self.read_segments_into(segment_id, &mut bytes).await?;
        Ok(bytes)
    }
/// A helper function to load a single segment into a fixed array.
A helper function to load a single segment into a fixed array.
A helper function to load a single segment into a fixed array .
async fn read_segment(&mut self, segment_id: usize) -> Result<[u8; SEGMENT_SIZE]> {
        let mut bytes = [0; SEGMENT_SIZE];
        self.read_segments_into(segment_id, &mut bytes).await?;
        Ok(bytes)
    }
async fn read_segment ( & mut self , segment_id : usize ) -> Result < [ u8 ; SEGMENT_SIZE ] > { let mut bytes = [ 0 ; SEGMENT_SIZE ] ; self . read_segments_into ( segment_id , & mut bytes ) . await ? ; Ok ( bytes ) }
A helper function to load a single segment into a fixed array.
A helper function to load a single segment into a fixed array .
&mut self
segment_id
usize
&mut self
segment_id
usize