pub struct RecordedHistorySegment(/* private fields */);
Expand description
Recorded history segment before archiving is applied.
NOTE: This is a stack-allocated data structure and can cause stack overflow!
Implementations§
Source§impl RecordedHistorySegment
impl RecordedHistorySegment
Sourcepub const NUM_RAW_RECORDS: usize = 128usize
pub const NUM_RAW_RECORDS: usize = 128usize
Number of raw records in one segment of recorded history.
Sourcepub const ERASURE_CODING_RATE: (usize, usize)
pub const ERASURE_CODING_RATE: (usize, usize)
Erasure coding rate for records during archiving process.
Sourcepub const SIZE: usize = 130_023_424usize
pub const SIZE: usize = 130_023_424usize
Size of recorded history segment in bytes.
It includes half of the records (just source records) that will later be erasure coded and
together with corresponding commitments and witnesses will result in
ArchivedHistorySegment::NUM_PIECES
Piece
s of archival history.
Trait Implementations§
Source§impl AsMut<[u8]> for RecordedHistorySegment
impl AsMut<[u8]> for RecordedHistorySegment
Source§impl AsRef<[u8]> for RecordedHistorySegment
impl AsRef<[u8]> for RecordedHistorySegment
Source§impl Clone for RecordedHistorySegment
impl Clone for RecordedHistorySegment
Source§fn clone(&self) -> RecordedHistorySegment
fn clone(&self) -> RecordedHistorySegment
Returns a copy 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 RecordedHistorySegment
impl Debug for RecordedHistorySegment
Source§impl Default for RecordedHistorySegment
impl Default for RecordedHistorySegment
Source§impl Deref for RecordedHistorySegment
impl Deref for RecordedHistorySegment
Source§impl DerefMut for RecordedHistorySegment
impl DerefMut for RecordedHistorySegment
Source§impl PartialEq for RecordedHistorySegment
impl PartialEq for RecordedHistorySegment
impl Copy for RecordedHistorySegment
impl Eq for RecordedHistorySegment
impl StructuralPartialEq for RecordedHistorySegment
Auto Trait Implementations§
impl Freeze for RecordedHistorySegment
impl RefUnwindSafe for RecordedHistorySegment
impl Send for RecordedHistorySegment
impl Sync for RecordedHistorySegment
impl Unpin for RecordedHistorySegment
impl UnwindSafe for RecordedHistorySegment
Blanket Implementations§
§impl<T, U> AsByteSlice<T> for U
impl<T, U> AsByteSlice<T> for U
fn as_byte_slice(&self) -> &[u8] ⓘ
§impl<T, U> AsMutByteSlice<T> for U
impl<T, U> AsMutByteSlice<T> for U
fn as_mut_byte_slice(&mut self) -> &mut [u8] ⓘ
§impl<U> AsMutSliceOf for U
impl<U> AsMutSliceOf for U
fn as_mut_slice_of<T>(&mut self) -> Result<&mut [T], Error>where
T: FromByteSlice,
§impl<U> AsSliceOf for U
impl<U> AsSliceOf for U
fn as_slice_of<T>(&self) -> Result<&[T], Error>where
T: FromByteSlice,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Lower case
letters are used (e.g. f9b4ca
)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Upper case
letters are used (e.g. F9B4CA
)