pub struct ProtocolControlMessageSetPeerBandwidth {
pub acknowledgement_window_size: u32,
pub limit_type: ProtocolControlMessageSetPeerBandwidthLimitType,
}
Expand description
The client or the server sends this message to limit the output bandwidth of its peer. The peer receiving this message limits its output bandwidth by limiting the amount of sent but unacknowledged data to the window size indicated in this message.
Defined by:
- Legacy RTMP spec, 5.4.5. Set Peer Bandwidth (6)
Fields§
§acknowledgement_window_size: u32
The window size to limit the output bandwidth to.
limit_type: ProtocolControlMessageSetPeerBandwidthLimitType
The limit type.
Implementations§
Source§impl ProtocolControlMessageSetPeerBandwidth
impl ProtocolControlMessageSetPeerBandwidth
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 ProtocolControlMessageSetPeerBandwidth
to the given writer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProtocolControlMessageSetPeerBandwidth
impl RefUnwindSafe for ProtocolControlMessageSetPeerBandwidth
impl Send for ProtocolControlMessageSetPeerBandwidth
impl Sync for ProtocolControlMessageSetPeerBandwidth
impl Unpin for ProtocolControlMessageSetPeerBandwidth
impl UnwindSafe for ProtocolControlMessageSetPeerBandwidth
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