#[non_exhaustive]pub enum FlexFecEncodeError {
NothingToProtect,
TooManySsrcs,
MaskTooNarrow,
DuplicateSequenceNumber,
NotTheFixedBlock,
SourceTooLong,
NotVersion2,
Marshal,
}Expand description
Why a repair packet could not be built.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NothingToProtect
No source packet was given.
TooManySsrcs
More than 15 source streams: the CSRC count is four bits (section 4.2.1).
MaskTooNarrow
A stream’s packets span more than 110 sequence numbers, which no mask can name.
DuplicateSequenceNumber
The same sequence number of one stream was given twice.
NotTheFixedBlock
The packets of a stream are not the row or column that L and D describe, or L is 0.
SourceTooLong
A source packet is longer than the 16-bit length recovery field can express.
NotVersion2
A source packet is not RTP version 2, the only version the format supports (section 6.2).
Marshal
A source packet could not be serialized.
Trait Implementations§
Source§impl Clone for FlexFecEncodeError
impl Clone for FlexFecEncodeError
impl Copy for FlexFecEncodeError
Source§impl Debug for FlexFecEncodeError
impl Debug for FlexFecEncodeError
Source§impl Display for FlexFecEncodeError
impl Display for FlexFecEncodeError
impl Eq for FlexFecEncodeError
Source§impl Error for FlexFecEncodeError
impl Error for FlexFecEncodeError
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()
Source§impl PartialEq for FlexFecEncodeError
impl PartialEq for FlexFecEncodeError
impl StructuralPartialEq for FlexFecEncodeError
Auto Trait Implementations§
impl Forget for FlexFecEncodeError
impl Freeze for FlexFecEncodeError
impl Move for FlexFecEncodeError
impl RefUnwindSafe for FlexFecEncodeError
impl Send for FlexFecEncodeError
impl Sync for FlexFecEncodeError
impl Unpin for FlexFecEncodeError
impl UnsafeUnpin for FlexFecEncodeError
impl UnwindSafe for FlexFecEncodeError
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