pub struct LrcEncodeResult {
pub source_symbols: Vec<(u32, Vec<u8>)>,
pub local_parities: Vec<(u32, Vec<u8>)>,
pub global_parity: Vec<u8>,
pub k_source: u32,
pub locality: usize,
pub num_groups: usize,
}Expand description
Result of an LRC encode operation.
Fields§
§source_symbols: Vec<(u32, Vec<u8>)>Source symbols: (index, data).
local_parities: Vec<(u32, Vec<u8>)>Local parity symbols: (group_index, data). One per locality group.
global_parity: Vec<u8>Global parity symbol: XOR of all source symbols.
k_source: u32Number of source symbols.
locality: usizeLocality group size used.
num_groups: usizeNumber of locality groups.
Trait Implementations§
Source§impl Clone for LrcEncodeResult
impl Clone for LrcEncodeResult
Source§fn clone(&self) -> LrcEncodeResult
fn clone(&self) -> LrcEncodeResult
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 moreAuto Trait Implementations§
impl Freeze for LrcEncodeResult
impl RefUnwindSafe for LrcEncodeResult
impl Send for LrcEncodeResult
impl Sync for LrcEncodeResult
impl Unpin for LrcEncodeResult
impl UnsafeUnpin for LrcEncodeResult
impl UnwindSafe for LrcEncodeResult
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).