pub struct SectorRecordChunks {
pub source: Box<Record>,
pub parity: Box<Record>,
pub present: ShardsPresent<{ Record::NUM_CHUNKS }>,
}Expand description
Record chunks read from a sector.
Source and parity chunks are separate allocations so that a caller which only needs the source record can drop the parity one as soon as recovery is done. Contents of chunks that are not present are unspecified.
Fields§
§source: Box<Record>Source chunks
parity: Box<Record>Parity chunks
present: ShardsPresent<{ Record::NUM_CHUNKS }>Which chunks are present
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SectorRecordChunks
impl RefUnwindSafe for SectorRecordChunks
impl Send for SectorRecordChunks
impl Sync for SectorRecordChunks
impl Unpin for SectorRecordChunks
impl UnsafeUnpin for SectorRecordChunks
impl UnwindSafe for SectorRecordChunks
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more