pub struct EncodingPipeline { /* private fields */ }Expand description
Main encoding pipeline.
Implementations§
Source§impl EncodingPipeline
impl EncodingPipeline
Sourcepub fn new(config: EncodingConfig, pool: SymbolPool) -> Self
pub fn new(config: EncodingConfig, pool: SymbolPool) -> Self
Creates a new encoding pipeline.
Sourcepub const fn stats(&self) -> EncodingStats
pub const fn stats(&self) -> EncodingStats
Returns encoding statistics for the most recent run.
Sourcepub fn encode<'a>(
&'a mut self,
object_id: ObjectId,
data: &'a [u8],
) -> EncodingIterator<'a> ⓘ
pub fn encode<'a>( &'a mut self, object_id: ObjectId, data: &'a [u8], ) -> EncodingIterator<'a> ⓘ
Encodes data using the configured repair overhead.
Sourcepub fn encode_with_repair<'a>(
&'a mut self,
object_id: ObjectId,
data: &'a [u8],
repair_count: usize,
) -> EncodingIterator<'a> ⓘ
pub fn encode_with_repair<'a>( &'a mut self, object_id: ObjectId, data: &'a [u8], repair_count: usize, ) -> EncodingIterator<'a> ⓘ
Encodes data with an explicit repair count per block.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EncodingPipeline
impl RefUnwindSafe for EncodingPipeline
impl Send for EncodingPipeline
impl Sync for EncodingPipeline
impl Unpin for EncodingPipeline
impl UnsafeUnpin for EncodingPipeline
impl UnwindSafe for EncodingPipeline
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> 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).