#[non_exhaustive]pub enum TmmbrControl {
Limit {
media_ssrc: u32,
bitrate: u64,
},
Clear {
media_ssrc: u32,
},
NegotiatedMaximum(Option<u64>),
}Expand description
What an application tells the TMMBR requester (the congestion control interceptor), written
into the chain with into_packet.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Limit
Ask the remote sender of media_ssrc to stay under bitrate bits per second, total
media bit rate at the IP layer (RFC 5104 section 2.2: the RTP packets with their IP,
UDP and RTP headers). Only for a remote stream that negotiated ccm tmmbr.
Fields
Clear
Lift the limit set on media_ssrc.
NegotiatedMaximum(Option<u64>)
The maximum bit rate negotiated in signalling for what this endpoint receives (b=TIAS,
or b=AS times 1000), which no TMMBR value exceeds (RFC 5104 section 4.2.1.2). None:
none was negotiated.
Implementations§
Source§impl TmmbrControl
impl TmmbrControl
Sourcepub fn into_packet(self, now: Instant) -> TaggedPacket
pub fn into_packet(self, now: Instant) -> TaggedPacket
The packet that carries this to the interceptor when written into the chain at now.
Trait Implementations§
Source§impl Clone for TmmbrControl
impl Clone for TmmbrControl
impl Copy for TmmbrControl
Source§impl Debug for TmmbrControl
impl Debug for TmmbrControl
impl Eq for TmmbrControl
Source§impl PartialEq for TmmbrControl
impl PartialEq for TmmbrControl
impl StructuralPartialEq for TmmbrControl
Auto Trait Implementations§
impl Forget for TmmbrControl
impl Freeze for TmmbrControl
impl Move for TmmbrControl
impl RefUnwindSafe for TmmbrControl
impl Send for TmmbrControl
impl Sync for TmmbrControl
impl Unpin for TmmbrControl
impl UnsafeUnpin for TmmbrControl
impl UnwindSafe for TmmbrControl
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