pub struct DiskChunkCache { /* private fields */ }Expand description
The syncer’s cache: one file per chunk under the state dir
(.flint-sync/chunk-cache/<addr>). The state dir sits in the
app-writable tree, so every access is the state dir’s discipline: no
symlink is followed at the directory or the file, a FIFO or a
directory at a chunk’s name is a miss, writes go through
safefs::write_via_tmp_fast, and every body read is verified by its
caller before use.
Implementations§
Trait Implementations§
Source§impl ChunkCache for DiskChunkCache
impl ChunkCache for DiskChunkCache
Auto Trait Implementations§
impl !Freeze for DiskChunkCache
impl RefUnwindSafe for DiskChunkCache
impl Send for DiskChunkCache
impl Sync for DiskChunkCache
impl Unpin for DiskChunkCache
impl UnsafeUnpin for DiskChunkCache
impl UnwindSafe for DiskChunkCache
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