pub struct PoolClient(/* private fields */);
Expand description
A client for manipulating a running IoUringPool
.
Implementations§
Source§impl PoolClient
impl PoolClient
Sourcepub fn set_idle_task<F>(&self, f: F)
pub fn set_idle_task<F>(&self, f: F)
Sets the idle task to run. The task is returned by f
, which receives
the file descriptor of the IO ring.
The idle task is run before waiting on the IO ring. The idle task can
block synchronously by first calling IdleControl::pre_block
, and
then by polling on the IO ring while the task blocks.
Sourcepub fn initiator(&self) -> &IoInitiator
pub fn initiator(&self) -> &IoInitiator
Returns the IO initiator.
Sourcepub fn set_iowq_affinity(&self, affinity: &CpuSet) -> Result<()>
pub fn set_iowq_affinity(&self, affinity: &CpuSet) -> Result<()>
Sets the CPU affinity for the kernel io-uring worker threads.
Trait Implementations§
Source§impl Clone for PoolClient
impl Clone for PoolClient
Source§fn clone(&self) -> PoolClient
fn clone(&self) -> PoolClient
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PoolClient
impl Debug for PoolClient
Auto Trait Implementations§
impl Freeze for PoolClient
impl !RefUnwindSafe for PoolClient
impl Send for PoolClient
impl Sync for PoolClient
impl Unpin for PoolClient
impl !UnwindSafe for PoolClient
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