pub struct ChunkStream {
pub csid: u32,
pub chunk_size: u32,
pub type0_timestamp: u32,
pub type0_msg_length: u32,
pub type0_msg_type_id: u8,
pub type0_msg_stream_id: u32,
pub type0_ext_ts: bool,
pub last_delta: u32,
pub reassembly_bytes_read: u32,
pub reassembly_buf: Buffer,
pub last_payload: Vec<u8>,
pub in_use: bool,
/* private fields */
}Expand description
Per-chunk-stream state.
Fields§
§csid: u32§chunk_size: u32peer’s chunk size (SetChunkSize)
type0_timestamp: u32running timestamp for this chunk stream
type0_msg_length: u32§type0_msg_type_id: u8§type0_msg_stream_id: u32§type0_ext_ts: boolcurrent message uses extended timestamps
last_delta: u32The most recent fmt=1/2 timestamp delta applied on this CSID. A new message that starts with fmt=3 (reusing the prior header entirely) implicitly repeats this same delta per RTMP spec 5.3.1.3.
reassembly_bytes_read: u32bytes read so far for current message
reassembly_buf: Bufferbuffer for reassembling partial messages
last_payload: Vec<u8>Last completed payload on this CSID. Copied before reassembly_buf is reset/shrunk so callers can read via the returned pointer safely.
in_use: boolImplementations§
Trait Implementations§
Source§impl Debug for ChunkStream
impl Debug for ChunkStream
Auto Trait Implementations§
impl Freeze for ChunkStream
impl RefUnwindSafe for ChunkStream
impl Send for ChunkStream
impl Sync for ChunkStream
impl Unpin for ChunkStream
impl UnsafeUnpin for ChunkStream
impl UnwindSafe for ChunkStream
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