pub enum FecError {
InvalidParameters,
NotEnoughFragments,
InvalidFragmentIndex(usize),
SingularMatrix,
OutputSlotMismatch,
}Expand description
Reed-Solomon FEC error.
Variants§
InvalidParameters
FEC parameters are outside 0 < k <= n < 256.
NotEnoughFragments
Fewer than k usable fragments were available.
InvalidFragmentIndex(usize)
A fragment index was outside the configured block.
SingularMatrix
The decode matrix could not be inverted.
OutputSlotMismatch
Recovered output did not match expected primary slots.
Trait Implementations§
impl Eq for FecError
Source§impl Error for FecError
impl Error for FecError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for FecError
Auto Trait Implementations§
impl Freeze for FecError
impl RefUnwindSafe for FecError
impl Send for FecError
impl Sync for FecError
impl Unpin for FecError
impl UnsafeUnpin for FecError
impl UnwindSafe for FecError
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