pub struct ProtocolControlMessageSetChunkSize {
pub chunk_size: u32,
}
Expand description
Used to notify the peer of a new maximum chunk size.
Defined by:
- Legacy RTMP spec, 5.4.1. Set Chunk Size (1)
Fields§
§chunk_size: u32
This field holds the new maximum chunk size, in bytes, which will be used for all of the sender’s subsequent chunks until further notice. Valid sizes are
1
to2147483647
(0x7FFFFFFF
) inclusive; however, all sizes greater than16777215
(0xFFFFFF
) are equivalent since no chunk is larger than one message, and no message is larger than16777215
bytes.
Implementations§
Source§impl ProtocolControlMessageSetChunkSize
impl ProtocolControlMessageSetChunkSize
Sourcepub fn read(data: &[u8]) -> Result<Self>
pub fn read(data: &[u8]) -> Result<Self>
Reads a ProtocolControlMessageSetChunkSize
from the given data.
Source§impl ProtocolControlMessageSetChunkSize
impl ProtocolControlMessageSetChunkSize
Sourcepub fn write(
&self,
io: &mut impl Write,
writer: &ChunkWriter,
) -> Result<(), RtmpError>
pub fn write( &self, io: &mut impl Write, writer: &ChunkWriter, ) -> Result<(), RtmpError>
Writes the ProtocolControlMessageSetChunkSize
to the given writer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProtocolControlMessageSetChunkSize
impl RefUnwindSafe for ProtocolControlMessageSetChunkSize
impl Send for ProtocolControlMessageSetChunkSize
impl Sync for ProtocolControlMessageSetChunkSize
impl Unpin for ProtocolControlMessageSetChunkSize
impl UnwindSafe for ProtocolControlMessageSetChunkSize
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