pub struct RingConfig {
pub sq_entries: u32,
pub cq_entries: u32,
pub sq_poll: bool,
pub sq_thread_cpu: Option<u32>,
pub sq_thread_idle: Option<u32>,
pub cq_overflow: bool,
pub kernel_sq_thread: bool,
}Expand description
Ring-specific configuration options.
Fields§
§sq_entries: u32Number of submission queue entries
cq_entries: u32Number of completion queue entries (0 = same as sq_entries)
sq_poll: boolEnable submission queue polling
sq_thread_cpu: Option<u32>CPU for SQ polling thread
sq_thread_idle: Option<u32>SQ polling idle timeout in milliseconds
cq_overflow: boolEnable completion queue overflow handling
kernel_sq_thread: boolEnable kernel submission queue thread
Trait Implementations§
Source§impl Clone for RingConfig
impl Clone for RingConfig
Source§fn clone(&self) -> RingConfig
fn clone(&self) -> RingConfig
Returns a duplicate 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 RingConfig
impl Debug for RingConfig
Auto Trait Implementations§
impl Freeze for RingConfig
impl RefUnwindSafe for RingConfig
impl Send for RingConfig
impl Sync for RingConfig
impl Unpin for RingConfig
impl UnwindSafe for RingConfig
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