diskann-platform 0.50.1

DiskANN is a fast approximate nearest neighbor search library for high dimensional data
Documentation
/*
 * Copyright (c) Microsoft Corporation.
 * Licensed under the MIT license.
 */

use std::fs::File;

use io_uring::IoUring;

// The IOContext struct for disk I/O. One for each thread.
pub struct IOContext {
    pub file_handle: File,
    pub ring: IoUring,
}

impl IOContext {
    pub fn new(file_handle: File, ring: IoUring) -> Self {
        IOContext { file_handle, ring }
    }
}