pub struct DataAggregator {
pub chunks: Vec<Chunk>,
pub pending_file_info: Vec<(MDBFileInfo, Vec<usize>, u64)>,
pub file_boundaries: Vec<usize>,
/* private fields */
}Fields§
§chunks: Vec<Chunk>§pending_file_info: Vec<(MDBFileInfo, Vec<usize>, u64)>§file_boundaries: Vec<usize>Implementations§
Source§impl DataAggregator
impl DataAggregator
pub fn is_empty(&self) -> bool
pub fn num_chunks(&self) -> usize
pub fn num_bytes(&self) -> usize
Sourcepub fn finalize(self) -> (RawXorbData, Vec<(u64, MDBFileInfo, u64)>)
pub fn finalize(self) -> (RawXorbData, Vec<(u64, MDBFileInfo, u64)>)
Finalize the result, returning the xorb data, and a Vec of (file_id, file_info, n_bytes_in_xorb); i.e. the file info that’s included in this along with the number of bytes in each file that is part of this xorb.
pub fn merge_in(&mut self, other: DataAggregator)
Trait Implementations§
Source§impl Debug for DataAggregator
impl Debug for DataAggregator
Source§impl Default for DataAggregator
impl Default for DataAggregator
Source§fn default() -> DataAggregator
fn default() -> DataAggregator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DataAggregator
impl RefUnwindSafe for DataAggregator
impl Send for DataAggregator
impl Sync for DataAggregator
impl Unpin for DataAggregator
impl UnsafeUnpin for DataAggregator
impl UnwindSafe for DataAggregator
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
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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