IoUringBackend

Struct IoUringBackend 

Source
pub struct IoUringBackend { /* private fields */ }

Implementations§

Source§

impl IoUringBackend

Source

pub fn new(layout: Layout, qd: usize) -> Result<Self>

Source

pub fn layout(&self) -> &Layout

Source

pub fn drop_pagecache(&self)

2026-09-25: Advise the kernel to drop every layer file’s page cache (POSIX_FADV_DONTNEED), so later reads go to the device.

Trait Implementations§

Source§

impl StorageBackend for IoUringBackend

Source§

fn read(&mut self, requests: &[ReadRequest], stream: u64) -> Result<()>

2026-09-25: Fill every request’s destination. Returns once the data is in place, so work the caller enqueues on stream afterwards reads it.
Source§

fn write_from_host(&mut self, key: GroupKey, src: &[u8]) -> Result<()>

2026-09-25: Write one group from host memory; src is group_bytes() long.
Source§

fn group_layout(&self) -> GroupLayout

2026-09-25: The geometry the default block methods fan out with.
Source§

fn read_async(&mut self, requests: &[ReadRequest], stream: u64) -> Result<()>

2026-09-25: Like read, but an implementation may return before the copies on stream finish. The default calls read.
Source§

fn read_blocks( &mut self, requests: &[BlockReadRequest], stream: u64, ) -> Result<()>

2026-09-25: Read whole blocks, with the stream contract of read. The default fans out to read through expand_blocks_to_groups.
Source§

fn read_blocks_async( &mut self, requests: &[BlockReadRequest], stream: u64, ) -> Result<()>

2026-09-25: The block form of read_async. The default fans out to read_async.
Source§

fn write_block_from_host( &mut self, base_key: GroupKey, src: &[u8], ) -> Result<()>

2026-09-25: Write one whole block. src is block_bytes() laid out [K0, …, K(nkv-1), V0, …, V(nkv-1)] at group_stride pitch; only base_key’s layer and block are read. The default rejects any other length, then calls write_from_host for K(kh) and V(kh) of each head.
Source§

fn write_blocks_run( &mut self, base_key: GroupKey, run_len: usize, src: &[u8], ) -> Result<()>

2026-09-25: Write run_len consecutive blocks of one layer, starting at base_key’s block; src is run_len · block_bytes(). The default rejects any other length, then calls write_block_from_host once per block.
Source§

fn supports_write_run_coalescing(&self) -> bool

2026-09-25: Whether this backend serves write_blocks_run as one wide op. The default is false.
Source§

fn register_landing_region(&mut self, base: u64, len: usize) -> Result<()>

2026-09-25: Register [base, base + len) as the region reads land in. The RDMA backends register it as one memory region per rail; the default does nothing.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,