pub enum RlncError {
InvalidParameters,
PacketSizeMismatch {
expected_coeffs: usize,
got_coeffs: usize,
expected_payload: usize,
got_payload: usize,
},
SourceCountMismatch {
expected: usize,
got: usize,
},
SourceSizeMismatch {
expected: usize,
got: usize,
},
IndexOutOfRange {
index: usize,
max: usize,
},
}Expand description
Errors returned by RLNC operations.
Variants§
InvalidParameters
generation_size or symbol_size was zero.
PacketSizeMismatch
A coded packet had wrong coefficient or payload length.
Fields
SourceCountMismatch
The source slice count does not match generation_size.
Fields
SourceSizeMismatch
A source symbol had the wrong byte length.
IndexOutOfRange
Systematic index out of range.
Trait Implementations§
impl Eq for RlncError
Source§impl Error for RlncError
Available on crate feature std only.
impl Error for RlncError
Available on crate feature
std only.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 RlncError
Auto Trait Implementations§
impl Freeze for RlncError
impl RefUnwindSafe for RlncError
impl Send for RlncError
impl Sync for RlncError
impl Unpin for RlncError
impl UnsafeUnpin for RlncError
impl UnwindSafe for RlncError
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