pub async fn load_async<T>(&self) -> Result<T>
    where
        T: Record,
    {
        let Self {
            ref path,
            offset,
            len,
        } = *self;
        let mut reader = BufReader::new(File::open(&**path).await?);
        let bytes = read_record_at(&mut reader, offset, len).await?;
        let record = T::from_bytes(bytes)?;
        Ok(record)
    }
/// Load the record data for the index.
Load the record data for the index.
Load the record data for the index .
pub async fn load_async<T>(&self) -> Result<T>
    where
        T: Record,
    {
        let Self {
            ref path,
            offset,
            len,
        } = *self;
        let mut reader = BufReader::new(File::open(&**path).await?);
        let bytes = read_record_at(&mut reader, offset, len).await?;
        let record = T::from_bytes(bytes)?;
        Ok(record)
    }
pub async fn load_async < T > ( & self ) -> Result < T > where T : Record , { let Self { ref path , offset , len , } = * self ; let mut reader = BufReader :: new ( File :: open ( & * * path ) . await ? ) ; let bytes = read_record_at ( & mut reader , offset , len ) . await ? ; let record = T :: from_bytes ( bytes ) ? ; Ok ( record ) }
Load the record data for the index.
Load the record data for the index .
&self
&self