pub fn count(&self) -> Result<u64, Box<Error>> {
        let file_size = try!(self.fd.metadata()).len();
        let rec_size: u64 = (self.key_size + self.value_size) as u64;

        if file_size % rec_size != 0 {
            Err(From::from(IOError::new(ErrorKind::InvalidData, "File size is NOT a multiple of key size + value size")))
        } else {
            Ok(file_size/rec_size)
        }
    }
/// Returns the number of records in the WAL file
Returns the number of records in the WAL file
Returns the number of records in the WAL file
pub fn count(&self) -> Result<u64, Box<Error>> {
        let file_size = try!(self.fd.metadata()).len();
        let rec_size: u64 = (self.key_size + self.value_size) as u64;
        if file_size % rec_size != 0 {
            Err(From::from(IOError::new(ErrorKind::InvalidData, "File size is NOT a multiple of key size + value size")))
        } else {
            Ok(file_size/rec_size)
        }
    }
pub fn count ( & self ) -> Result < u64 , Box < Error > > { let file_size = try ! ( self fd metadata ( ) ) . len ( ) ; let rec_size : u64 = ( self . key_size + self . value_size ) as u64 ; if file_size % rec_size != 0 { Err ( From :: from ( IOError :: new ( ErrorKind :: InvalidData , " " ) ) ) } else { Ok ( file_size / rec_size ) } }
Returns the number of records in the WAL file
Returns the number of records in the WAL file
&self