pub enum ReorderOp<'a> {
Copy {
hash: &'a HashSum,
size: usize,
source: u64,
dest: Vec<u64>,
},
StoreInMem {
hash: &'a HashSum,
size: usize,
source: u64,
},
}
Expand description
Represents a single chunk re-ordering operation.
Variants§
Copy
The Copy
operation says we should copy a chunk from the source location to the
destination offsets. If we already have the given chunk stored in memory (from a
previous StoreInMem
operation) we should copy it from memory instead of from
the source.
Fields
StoreInMem
The StoreInMem
operation says to read a chunk from the source and keep it in
memory until next Copy
of the given chunk.
Trait Implementations§
source§impl<'a> PartialEq for ReorderOp<'a>
impl<'a> PartialEq for ReorderOp<'a>
impl<'a> Eq for ReorderOp<'a>
impl<'a> StructuralPartialEq for ReorderOp<'a>
Auto Trait Implementations§
impl<'a> Freeze for ReorderOp<'a>
impl<'a> RefUnwindSafe for ReorderOp<'a>
impl<'a> Send for ReorderOp<'a>
impl<'a> Sync for ReorderOp<'a>
impl<'a> Unpin for ReorderOp<'a>
impl<'a> UnwindSafe for ReorderOp<'a>
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