pub enum ChunkReadError {
MissingPreviousChunkHeader(u32),
TooManyPartialChunks,
TooManyPreviousChunkHeaders,
PartialChunkTooLarge(usize),
}
Expand description
Errors that can occur when reading or writing chunks.
Variants§
MissingPreviousChunkHeader(u32)
Missing previous chunk header.
TooManyPartialChunks
Too many partial chunks.
TooManyPreviousChunkHeaders
There are too many previous chunk headers stored in memory. The client is probably trying to DoS us.
PartialChunkTooLarge(usize)
The length of a single chunk is larger than the max partial chunk size. The client is probably trying to DoS us.
Trait Implementations§
Source§impl Debug for ChunkReadError
impl Debug for ChunkReadError
Source§impl Display for ChunkReadError
impl Display for ChunkReadError
Source§impl Error for ChunkReadError
impl Error for ChunkReadError
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 From<ChunkReadError> for RtmpError
impl From<ChunkReadError> for RtmpError
Source§fn from(source: ChunkReadError) -> Self
fn from(source: ChunkReadError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ChunkReadError
impl RefUnwindSafe for ChunkReadError
impl Send for ChunkReadError
impl Sync for ChunkReadError
impl Unpin for ChunkReadError
impl UnwindSafe for ChunkReadError
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