pub struct AsupersyncCodec { /* private fields */ }Expand description
Production SymbolCodec backed by asupersync’s RaptorQ encoder/decoder.
Wraps RaptorQSenderBuilder for encode and RaptorQReceiverBuilder for
decode, using in-memory transports. The codec is stateless and can be
shared across threads (Send + Sync).
§Configuration
max_block_size: Maximum source block size in bytes (default: 64 KiB). This controls how asupersync partitions large objects into source blocks. For page-level FEC where each encode call handles a single commit group (typically a few pages), the default is sufficient.
Implementations§
Trait Implementations§
Source§impl Clone for AsupersyncCodec
impl Clone for AsupersyncCodec
Source§fn clone(&self) -> AsupersyncCodec
fn clone(&self) -> AsupersyncCodec
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 moreSource§impl Debug for AsupersyncCodec
impl Debug for AsupersyncCodec
Source§impl Default for AsupersyncCodec
impl Default for AsupersyncCodec
Source§impl SymbolCodec for AsupersyncCodec
impl SymbolCodec for AsupersyncCodec
Auto Trait Implementations§
impl Freeze for AsupersyncCodec
impl RefUnwindSafe for AsupersyncCodec
impl Send for AsupersyncCodec
impl Sync for AsupersyncCodec
impl Unpin for AsupersyncCodec
impl UnsafeUnpin for AsupersyncCodec
impl UnwindSafe for AsupersyncCodec
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).