pub struct Message {
pub chunk_stream_id: u32,
pub timestamp: u32,
pub message_type_id: u8,
pub message_stream_id: u32,
pub payload: Vec<u8>,
}Expand description
One fully reassembled RTMP message: the payload of a single message
stream at a single (resolved, absolute) timestamp (§6.1). Produced by
ChunkAssembler::push and consumed by ChunkWriter::write.
Task 5 (message.rs) adds typed interpretation of payload/
message_type_id; this carrier stays stable underneath that.
Fields§
§chunk_stream_id: u32Chunk stream id this message was carried on.
timestamp: u32Absolute timestamp (already resolved from any timestamp delta / Extended Timestamp — never a delta).
message_type_id: u8Message type id (§6/§7.1).
message_stream_id: u32Message stream id.
payload: Vec<u8>The whole message payload (reassembled across every chunk it was split into).
Trait Implementations§
impl Eq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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