pub struct LinuxIoUringBackend { /* private fields */ }Expand description
Linux io_uring backend (real implementation)
Uses the io-uring crate to provide real async I/O on Linux 5.1+ Falls back to synchronous I/O on older kernels or other platforms.
Implementations§
Source§impl LinuxIoUringBackend
impl LinuxIoUringBackend
Sourcepub fn new(config: IoUringConfig, stats: Arc<IoUringStats>) -> Result<Self>
pub fn new(config: IoUringConfig, stats: Arc<IoUringStats>) -> Result<Self>
Create a new io_uring backend
Trait Implementations§
Source§impl AsyncIoBackend for LinuxIoUringBackend
Available on Linux only.
impl AsyncIoBackend for LinuxIoUringBackend
Available on Linux only.
Auto Trait Implementations§
impl !Freeze for LinuxIoUringBackend
impl !RefUnwindSafe for LinuxIoUringBackend
impl Send for LinuxIoUringBackend
impl Sync for LinuxIoUringBackend
impl Unpin for LinuxIoUringBackend
impl UnwindSafe for LinuxIoUringBackend
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more