Struct rustdb::buf::ReadBufStg
source · pub struct ReadBufStg<const N: usize> { /* private fields */ }
Expand description
ReadBufStg buffers small (up to limit) reads to the underlying storage using multiple buffers. Only supported functions are read and reset.
See implementation of AtomicFile for how this is used in conjunction with WMap.
N is buffer size.
Implementations§
Trait Implementations§
source§impl<const N: usize> Drop for ReadBufStg<N>
impl<const N: usize> Drop for ReadBufStg<N>
source§impl<const N: usize> Storage for ReadBufStg<N>
impl<const N: usize> Storage for ReadBufStg<N>
source§fn write_data(&mut self, start: u64, data: Data, off: usize, len: usize)
fn write_data(&mut self, start: u64, data: Data, off: usize, len: usize)
Write Data slice to storage.
source§fn wait_complete(&self)
fn wait_complete(&self)
Wait until current writes are complete.
Auto Trait Implementations§
impl<const N: usize> !Freeze for ReadBufStg<N>
impl<const N: usize> !RefUnwindSafe for ReadBufStg<N>
impl<const N: usize> Send for ReadBufStg<N>
impl<const N: usize> Sync for ReadBufStg<N>
impl<const N: usize> Unpin for ReadBufStg<N>
impl<const N: usize> !UnwindSafe for ReadBufStg<N>
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