pub struct DriverConfig {
pub entries: u32,
pub submit_wait: bool,
pub cpu_affinity: Option<usize>,
pub defer_wakeup: bool,
pub max_ops_per_fd: u32,
}Expand description
Driver configuration using builder pattern 使用Builder模式的Driver配置
Fields§
§entries: u32Queue depth (must be power of 2 for ring buffer efficiency) 队列深度(必须是2的幂以优化环形缓冲区效率)
submit_wait: boolWait for completion on submit (blocking mode) 提交时等待完成(阻塞模式)
cpu_affinity: Option<usize>CPU core affinity (None = no affinity) CPU核心亲和性(None = 无亲和性)
defer_wakeup: boolEnable deferred task wake-up 启用延迟任务唤醒
max_ops_per_fd: u32Maximum number of concurrent operations per FD 每个文件描述符的最大并发操作数
Trait Implementations§
Source§impl Clone for DriverConfig
impl Clone for DriverConfig
Source§fn clone(&self) -> DriverConfig
fn clone(&self) -> DriverConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DriverConfig
Source§impl Debug for DriverConfig
impl Debug for DriverConfig
Auto Trait Implementations§
impl Freeze for DriverConfig
impl RefUnwindSafe for DriverConfig
impl Send for DriverConfig
impl Sync for DriverConfig
impl Unpin for DriverConfig
impl UnsafeUnpin for DriverConfig
impl UnwindSafe for DriverConfig
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