pub struct AnyFileStorage { /* private fields */ }Expand description
Alternative to SimpleFileStorage that uses multiple SimpleFileStorages to allow parallel reads by different threads.
Implementations§
Trait Implementations§
Source§impl BasicStorage for AnyFileStorage
impl BasicStorage for AnyFileStorage
Source§fn size(&self) -> u64
fn size(&self) -> u64
Get the size of the underlying storage.
Note : this is valid initially and after a commit but is not defined after write is called.
Source§fn commit(&mut self, size: u64)
fn commit(&mut self, size: u64)
Finish write transaction, size is new size of underlying storage.
Source§fn wait_complete(&self)
fn wait_complete(&self)
Wait until current writes are complete.
impl Storage for AnyFileStorage
Auto Trait Implementations§
impl Freeze for AnyFileStorage
impl RefUnwindSafe for AnyFileStorage
impl Send for AnyFileStorage
impl Sync for AnyFileStorage
impl Unpin for AnyFileStorage
impl UnsafeUnpin for AnyFileStorage
impl UnwindSafe for AnyFileStorage
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