/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT license.
*/usestd::fs::File;useio_uring::IoUring;// The IOContext struct for disk I/O. One for each thread.
pubstructIOContext{// Kept alive so the file descriptor registered with the io_uring ring stays valid;
// the fd is used via `register_files`, so this field is never read directly.
#[allow(dead_code)]pubfile_handle: File,
pubring: IoUring,
}implIOContext{pubfnnew(file_handle: File, ring: IoUring)->Self{
IOContext { file_handle, ring }}}