Crate seekable_async_file
source ·Structs
A
File
-like value that can perform async read_at
and write_at
for I/O at specific offsets without mutating any state (i.e. is thread safe). Metrics are collected, and syncs can be delayed for write batching opportunities as a performance optimisation.Metrics populated by a
SeekableAsyncFile
. There should be exactly one per SeekableAsyncFile
; don’t share between multiple SeekableAsyncFile
values.Data to write and the offset to write it at. This is provided to
write_at_with_delayed_sync
.