pub struct UringBackend;Expand description
io_uring 后端:每线程一个常驻 ring(IoUring 非 Send),每次 read 提交并等待 1 个 完成。语义与 preadv 一致(尽力读/填满读),复用 trait 无需上层改动。 注意:per-call 提交在并行度足够(8t 各自 ring)时仍有优势(并法输入复制、多路竞争 展开),完全批量化(一次 submit N 个 SQE)留 batch API 演进(M1.5+)。
Trait Implementations§
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