Skip to main content

read_item

Function read_item 

Source
pub fn read_item(
    file: &mut (impl Read + Seek),
    options: &ReaderOptions,
    position: &mut ReadPosition,
    work: Option<&WorkBudget>,
    limits: &TenantLimits,
) -> Result<ReadOutput, FilesystemError>
Expand description

Read one logical item, anchoring every attempt at the supplied position. Read-ahead is local only. Errors leave the logical position unchanged. Durable backends commit the returned position before exposing the result.