pub struct ParityPlan {
pub stripe_len: u32,
pub rows: Vec<ParityRow>,
}Expand description
Per-row write plan for RAID5/RAID6 chunks.
All rows share stripe_len (every data column slot is exactly
stripe_len bytes; every parity slot is exactly stripe_len
bytes). The executor allocates stripe_len-sized scratch buffers
per data column per row.
Fields§
§stripe_len: u32Bytes per column slot. Same for every row; convenient to carry once at the plan level.
rows: Vec<ParityRow>One descriptor per physical row touched by the write.
Trait Implementations§
Source§impl Clone for ParityPlan
impl Clone for ParityPlan
Source§fn clone(&self) -> ParityPlan
fn clone(&self) -> ParityPlan
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParityPlan
impl Debug for ParityPlan
Source§impl PartialEq for ParityPlan
impl PartialEq for ParityPlan
impl Eq for ParityPlan
impl StructuralPartialEq for ParityPlan
Auto Trait Implementations§
impl Freeze for ParityPlan
impl RefUnwindSafe for ParityPlan
impl Send for ParityPlan
impl Sync for ParityPlan
impl Unpin for ParityPlan
impl UnsafeUnpin for ParityPlan
impl UnwindSafe for ParityPlan
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