#[non_exhaustive]pub enum UlpfecError {
Show 14 variants
TooShort,
TruncatedLevel,
EmptyMask,
TooManyLevels,
MoreThanOneLevel,
NothingToProtect,
UnknownSequenceNumber,
SpanTooWide,
PacketTooLarge,
ProtectedTwice,
LevelBelowMissing,
MalformedRed,
RedBlockTooLong,
OutsideWindow,
}Expand description
Why ULPFEC data was refused.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
TooShort
Fewer octets than the 10-octet FEC header and one level header.
TruncatedLevel
A level header says more payload follows than the packet holds.
EmptyMask
A level protects no packet at all.
TooManyLevels
More protection levels than the decoder accepts.
MoreThanOneLevel
More than one level in a stream that signalled onelevelonly=1.
NothingToProtect
The encoder was given no level, or a level with no packet.
UnknownSequenceNumber
A sequence number named by a level is not among the media packets given.
SpanTooWide
The protected packets span more than 48 sequence numbers.
PacketTooLarge
A media packet is longer than the 16-bit length recovery field can describe, or could not be serialised.
ProtectedTwice
A media packet is protected twice at a level above 0, or twice at level 0 with different protection lengths (RFC 5109 7.4 rule a).
LevelBelowMissing
A media packet is protected at a level without being protected at the level below (RFC 5109 7.4 rule b).
MalformedRed
A RED payload whose block headers do not fit the data.
RedBlockTooLong
A RED block longer than the 10-bit block length allows.
OutsideWindow
The FEC packet names sequence numbers outside the decoder’s window.
Trait Implementations§
Source§impl Clone for UlpfecError
impl Clone for UlpfecError
impl Copy for UlpfecError
Source§impl Debug for UlpfecError
impl Debug for UlpfecError
Source§impl Display for UlpfecError
impl Display for UlpfecError
impl Eq for UlpfecError
Source§impl Error for UlpfecError
impl Error for UlpfecError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()