pub struct Builder(/* private fields */);
Expand description
IoUring build params
Implementations§
Source§impl Builder
impl Builder
pub fn feature_single_mmap(&mut self) -> &mut Self
Sourcepub fn setup_iopoll(&mut self) -> &mut Self
pub fn setup_iopoll(&mut self) -> &mut Self
Perform busy-waiting for an I/O completion, as opposed to getting notifications via an asynchronous IRQ (Interrupt Request).
Sourcepub fn setup_sqpoll(&mut self, idle: impl Into<Option<u32>>) -> &mut Self
pub fn setup_sqpoll(&mut self, idle: impl Into<Option<u32>>) -> &mut Self
When this flag is specified, a kernel thread is created to perform submission queue polling. An io_uring instance configured in this way enables an application to issue I/O without ever context switching into the kernel.
Sourcepub fn setup_sqpoll_cpu(&mut self, n: u32) -> &mut Self
pub fn setup_sqpoll_cpu(&mut self, n: u32) -> &mut Self
If this flag is specified, then the poll thread will be bound to the cpu set in the value. This flag is only meaningful when Builder::setup_sqpoll is enabled.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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