pub enum RtpWriteError {
OutputTooSmall(usize),
InvalidPayloadType(u8),
PacketTooLarge,
TooManyContributionSources(usize),
ExtensionDataNotPadded,
InvalidPadding,
}Expand description
Errors produced when wrting a packet
Variants§
OutputTooSmall(usize)
Output buffer is not large enough to fit the resulting buffer. The requested size is returned.
InvalidPayloadType(u8)
The payload type provided is not valid.
PacketTooLarge
The requested packet is too large.
TooManyContributionSources(usize)
Too many Contribution Sources specified. The number of requested Contribution sources is returned.
ExtensionDataNotPadded
The extension data is not padded to a multiple of 4 bytes.
InvalidPadding
Padding value is invalid.
Trait Implementations§
Source§impl Debug for RtpWriteError
impl Debug for RtpWriteError
Source§impl Display for RtpWriteError
impl Display for RtpWriteError
Source§impl Error for RtpWriteError
impl Error for RtpWriteError
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 RtpWriteError
impl PartialEq for RtpWriteError
impl Eq for RtpWriteError
impl StructuralPartialEq for RtpWriteError
Auto Trait Implementations§
impl Freeze for RtpWriteError
impl RefUnwindSafe for RtpWriteError
impl Send for RtpWriteError
impl Sync for RtpWriteError
impl Unpin for RtpWriteError
impl UnwindSafe for RtpWriteError
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