Enum rtcp_types::RtcpWriteError
source · pub enum RtcpWriteError {
Show 19 variants
OutputTooSmall(usize),
InvalidPadding {
padding: u8,
},
AppSubtypeOutOfRange {
subtype: u8,
max: u8,
},
InvalidName,
DataLen32bitMultiple(usize),
TooManySources {
count: usize,
max: u8,
},
ReasonLenTooLarge {
len: usize,
max: u8,
},
CumulativeLostTooLarge {
value: u32,
max: u32,
},
TooManyReportBlocks {
count: usize,
max: u8,
},
TooManySdesChunks {
count: usize,
max: u8,
},
SdesValueTooLarge {
len: usize,
max: u8,
},
SdesPrivPrefixTooLarge {
len: usize,
max: u8,
},
CountOutOfRange {
count: u8,
max: u8,
},
NonLastCompoundPacketPadding,
MissingFci,
TooManyNack,
FciWrongFeedbackPacketType,
PayloadTypeInvalid,
PaddingBitsTooLarge,
}
Expand description
Errors produced when writing a packet
Variants§
OutputTooSmall(usize)
Output buffer is not large enough to fit the resulting buffer. The requested size is returned.
InvalidPadding
The provided padding is not a multiple of 4.
AppSubtypeOutOfRange
App Subtype was out of range.
InvalidName
APP Packet Name is invalid. Expecting a sequence of four ASCII characters.
DataLen32bitMultiple(usize)
Data length must be a mutliple of 32bits. The data length is returned.
TooManySources
Too many Sources specified.
ReasonLenTooLarge
Reason length was too large.
CumulativeLostTooLarge
Cumulative Lost was too large.
TooManyReportBlocks
Too many Report Blocks specified (max 31).
TooManySdesChunks
Too many SDES Chunks specified.
SdesValueTooLarge
SDES Value length was too large.
SdesPrivPrefixTooLarge
The SDES PRIV prefix was too large.
CountOutOfRange
Unknown Count was out of range.
NonLastCompoundPacketPadding
Non-last Compound packet padding defined.
MissingFci
Feedback packet does not have any FCI defined.
TooManyNack
Number of NACK’s will not fit within a single RTCP packet.
FciWrongFeedbackPacketType
Feedback packet does not support this FCI data.
PayloadTypeInvalid
Payload type value out of range.
PaddingBitsTooLarge
Payload type value out of range.
Trait Implementations§
source§impl Debug for RtcpWriteError
impl Debug for RtcpWriteError
source§impl Display for RtcpWriteError
impl Display for RtcpWriteError
source§impl Error for RtcpWriteError
impl Error for RtcpWriteError
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
source§impl From<RtcpParseError> for RtcpWriteError
impl From<RtcpParseError> for RtcpWriteError
source§fn from(err: RtcpParseError) -> Self
fn from(err: RtcpParseError) -> Self
source§impl PartialEq for RtcpWriteError
impl PartialEq for RtcpWriteError
source§fn eq(&self, other: &RtcpWriteError) -> bool
fn eq(&self, other: &RtcpWriteError) -> bool
self
and other
values to be equal, and is used
by ==
.