pub enum RLNCError {
Show 13 variants
CodingVectorLengthMismatch,
DataLengthMismatch,
PieceCountZero,
DataLengthZero,
PieceLengthZero,
NotEnoughPiecesToRecode,
PieceLengthTooShort,
PieceNotUseful,
ReceivedAllPieces,
NotAllPiecesReceivedYet,
InvalidDecodedDataFormat,
InvalidPieceLength,
InvalidOutputBuffer,
}
Expand description
Errors that can occur during RLNC (Random Linear Network Coding) encoding/ recoding/ decoding.
Variants§
CodingVectorLengthMismatch
When the coding vector’s length does not match the expected dimension during encoding.
DataLengthMismatch
When the data length does not match the expected block size during encoding.
PieceCountZero
When the piece count is zero.
DataLengthZero
When the data length is zero.
PieceLengthZero
When the piece length is zero.
NotEnoughPiecesToRecode
When there are not enough linearly independent pieces available to perform recoding.
PieceLengthTooShort
When the full coded piece byte length is less than or equal to the number of pieces coded together.
PieceNotUseful
When a received piece does not provide new linearly independent information.
ReceivedAllPieces
When all necessary pieces have already been received, and no further pieces are needed to decode.
NotAllPiecesReceivedYet
When an attempt is made to retrieve decoded data, but not all required pieces have arrived yet.
InvalidDecodedDataFormat
When the format or structure of the decoded data is not as expected.
InvalidPieceLength
When the length of a received piece does not match the expected length.
InvalidOutputBuffer
The user provided an invalid output buffer.