pub struct UringBackend { /* private fields */ }Expand description
The native io_uring backend.
Implementations§
Source§impl UringBackend
impl UringBackend
Sourcepub fn new(
config: &RingConfig,
completion_tx: Sender<BackendCompletion>,
) -> Result<Self>
pub fn new( config: &RingConfig, completion_tx: Sender<BackendCompletion>, ) -> Result<Self>
Sourcepub fn register_files(&self, fds: &[RawFd]) -> Result<()>
pub fn register_files(&self, fds: &[RawFd]) -> Result<()>
Registers a set of file descriptors for use with fixed-file operations.
§Errors
Returns an error if the backend is shutting down or if the kernel rejects the registration.
Sourcepub fn unregister_files(&self) -> Result<()>
pub fn unregister_files(&self) -> Result<()>
Unregisters all fixed file descriptors.
§Errors
Returns an error if the manager thread has panicked or the ring is closed.
Sourcepub fn supports_native(&self, descriptor: &OpDescriptor) -> bool
pub fn supports_native(&self, descriptor: &OpDescriptor) -> bool
Returns true if the operation is supported natively by this backend.
Trait Implementations§
Source§impl Backend for UringBackend
impl Backend for UringBackend
Auto Trait Implementations§
impl !Freeze for UringBackend
impl RefUnwindSafe for UringBackend
impl Send for UringBackend
impl Sync for UringBackend
impl Unpin for UringBackend
impl UnsafeUnpin for UringBackend
impl UnwindSafe for UringBackend
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