pub enum Op {
Open {
path: PathBuf,
mode: OpenMode,
},
Write {
path: PathBuf,
offset: u64,
len: usize,
},
Sync {
path: PathBuf,
},
Truncate {
path: PathBuf,
len: u64,
},
Rename {
from: PathBuf,
to: PathBuf,
},
Remove {
path: PathBuf,
},
CreateDir {
path: PathBuf,
},
SyncDir {
path: PathBuf,
},
}Expand description
One recorded operation.
Writes record their length rather than their bytes, because a log of a ClickBench load with the payloads in it is a log nobody can read and a test nobody can debug.
Variants§
Open
A file was opened.
Write
Bytes were written.
Sync
A file was made durable.
Truncate
A file was cut or extended.
Rename
A file was moved.
Remove
A file was deleted.
CreateDir
A directory was created.
SyncDir
A directory entry was made durable.
Implementations§
Trait Implementations§
impl Eq for Op
impl StructuralPartialEq for Op
Auto Trait Implementations§
impl Freeze for Op
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnsafeUnpin for Op
impl UnwindSafe for Op
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