pub struct FastFileStorage { /* private fields */ }Expand description
Can be used for atomic upd file ( does not implement Sync ).
Implementations§
Trait Implementations§
Source§impl BasicStorage for FastFileStorage
impl BasicStorage for FastFileStorage
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.
Auto Trait Implementations§
impl !Freeze for FastFileStorage
impl !RefUnwindSafe for FastFileStorage
impl Send for FastFileStorage
impl !Sync for FastFileStorage
impl Unpin for FastFileStorage
impl UnsafeUnpin for FastFileStorage
impl UnwindSafe for FastFileStorage
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