pub struct RegisteredFile { /* private fields */ }Expand description
A file registered with a specific Uring instance for optimized I/O.
Registered files avoid the overhead of fd lookup on each operation. Create one via Uring::register.
§Performance
Using registered files can significantly reduce per-operation overhead, especially for high-frequency I/O patterns. The kernel maintains a pre-validated reference to the file, avoiding repeated fd table lookups.
§Kernel Requirements
Requires Linux 5.12+ for sparse file registration.
Trait Implementations§
impl UringTarget for RegisteredFile
Auto Trait Implementations§
impl Freeze for RegisteredFile
impl RefUnwindSafe for RegisteredFile
impl Send for RegisteredFile
impl Sync for RegisteredFile
impl Unpin for RegisteredFile
impl UnwindSafe for RegisteredFile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more