pub struct Ring { /* private fields */ }Expand description
An I/O ring that manages asynchronous read and write operations. Provides facilities for both single and batch I/O operations with configurable parameters.
Implementations§
Source§impl Ring
impl Ring
Sourcepub fn create(config: &RingConfig, mount_point: &Path) -> Result<Self>
pub fn create(config: &RingConfig, mount_point: &Path) -> Result<Self>
Sourcepub fn batch_read(
&mut self,
jobs: &[impl ReadJob],
) -> Result<Vec<ReadResult<'_>>>
pub fn batch_read( &mut self, jobs: &[impl ReadJob], ) -> Result<Vec<ReadResult<'_>>>
Auto Trait Implementations§
impl Freeze for Ring
impl RefUnwindSafe for Ring
impl !Send for Ring
impl !Sync for Ring
impl Unpin for Ring
impl UnwindSafe for Ring
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