pub struct BasicHeader {
pub fmt: Fmt,
pub chunk_stream_id: u32,
}Expand description
Chunk Basic Header (§5.3.1.1): 1 to 3 bytes encoding the 2-bit fmt and
the chunk stream id (csid). Length depends only on the csid value; the
implementation SHOULD (and this Serialize impl does) use the smallest
form that holds the id.
Fields§
§fmt: FmtSelects which of the 4 Chunk Message Header formats follows.
chunk_stream_id: u32Chunk stream id. Valid range 2..=65599 on the wire (0/1 are the 2-/3-byte form markers, not real ids; 2 is further reserved by the spec for low-level protocol control messages/commands but is still a structurally valid basic-header value).
Trait Implementations§
Source§impl Clone for BasicHeader
impl Clone for BasicHeader
Source§fn clone(&self) -> BasicHeader
fn clone(&self) -> BasicHeader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BasicHeader
Source§impl Debug for BasicHeader
impl Debug for BasicHeader
impl Eq for BasicHeader
Source§impl<'a> Parse<'a> for BasicHeader
impl<'a> Parse<'a> for BasicHeader
Source§impl PartialEq for BasicHeader
impl PartialEq for BasicHeader
Source§impl Serialize for BasicHeader
impl Serialize for BasicHeader
Source§type Error = RtmpError
type Error = RtmpError
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl StructuralPartialEq for BasicHeader
Auto Trait Implementations§
impl Freeze for BasicHeader
impl RefUnwindSafe for BasicHeader
impl Send for BasicHeader
impl Sync for BasicHeader
impl Unpin for BasicHeader
impl UnsafeUnpin for BasicHeader
impl UnwindSafe for BasicHeader
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