pub struct ChunkLimits {
pub max_chunk_size: u32,
pub max_message_len: u32,
pub max_csids: usize,
pub max_in_progress_bytes: usize,
}Expand description
The four bounds ChunkAssembler holds a peer to, all chosen by the caller: the crate
supplies none of them.
Fields§
§max_chunk_size: u32Largest chunk size the peer may announce with Set Chunk Size (§5.4.1). The wire field is
a 31-bit value, so a caller’s ceiling is a policy about how much one chunk may hold;
an announcement above it is refused by ChunkAssembler::adopt_peer_chunk_size rather
than adopted at a smaller size, because parsing at any size but the announced one
mis-frames every later chunk boundary.
max_message_len: u32Largest message_length (§5.3.1.2) buffered for one reassembled message; a larger one is
consumed without being buffered and reported through ChunkAssembler::take_damage.
max_csids: usizeMost distinct chunk stream ids tracked at once.
max_in_progress_bytes: usizeTotal payload bytes buffered across every in-progress message (#1108/RTMP-W1).
Trait Implementations§
Source§impl Clone for ChunkLimits
impl Clone for ChunkLimits
impl Copy for ChunkLimits
Source§impl Debug for ChunkLimits
impl Debug for ChunkLimits
Source§impl<'de> Deserialize<'de> for ChunkLimits
Available on crate feature serde only.
impl<'de> Deserialize<'de> for ChunkLimits
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ChunkLimits
Source§impl PartialEq for ChunkLimits
impl PartialEq for ChunkLimits
Source§impl Serialize for ChunkLimits
Available on crate feature serde only.
impl Serialize for ChunkLimits
serde only.