pub struct ParityTarget {
pub kind: ParityKind,
pub devid: u64,
pub physical: u64,
}Expand description
One parity column slot to write.
The bytes themselves are computed by the executor — this struct only carries the destination.
Fields§
§kind: ParityKindP (XOR) or Q (Reed-Solomon).
devid: u64Device id of the parity column.
physical: u64Physical byte offset of the slot’s start on the device. Length
is always stripe_len.
Trait Implementations§
Source§impl Clone for ParityTarget
impl Clone for ParityTarget
Source§fn clone(&self) -> ParityTarget
fn clone(&self) -> ParityTarget
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 ParityTarget
impl Debug for ParityTarget
Source§impl PartialEq for ParityTarget
impl PartialEq for ParityTarget
impl Eq for ParityTarget
impl StructuralPartialEq for ParityTarget
Auto Trait Implementations§
impl Freeze for ParityTarget
impl RefUnwindSafe for ParityTarget
impl Send for ParityTarget
impl Sync for ParityTarget
impl Unpin for ParityTarget
impl UnsafeUnpin for ParityTarget
impl UnwindSafe for ParityTarget
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