pub struct DecoderResult<'a> { /* private fields */ }
Expand description
Result of decoding. Contains the restored original shards.
This struct is created by ReedSolomonDecoder::decode
and RateDecoder::decode
.
Implementations§
Source§impl DecoderResult<'_>
impl DecoderResult<'_>
Sourcepub fn restored_original(&self, index: usize) -> Option<&[u8]>
pub fn restored_original(&self, index: usize) -> Option<&[u8]>
Returns restored original shard with given index
or None
if given index
doesn’t correspond to
a missing original shard.
Sourcepub fn restored_original_iter(&self) -> RestoredOriginal<'_> ⓘ
pub fn restored_original_iter(&self) -> RestoredOriginal<'_> ⓘ
Returns iterator over all restored original shards and their indexes, ordered by indexes.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DecoderResult<'a>
impl<'a> RefUnwindSafe for DecoderResult<'a>
impl<'a> Send for DecoderResult<'a>
impl<'a> Sync for DecoderResult<'a>
impl<'a> Unpin for DecoderResult<'a>
impl<'a> !UnwindSafe for DecoderResult<'a>
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