pub struct RemoteBitrateLimitInterceptor { /* private fields */ }Expand description
Bounds the congestion controller’s estimate (Attribute::TargetBitrateChanged) by what
the remote description allows this endpoint to send.
RFC 9429 section 5.10: a b=TIAS value of a remote media section (or the one derived from
its b=AS) is “a constraint on the maximum RTP bitrate to be used when sending media”. The
estimate is one number for the transport, so its bound is the sum of the limits of the
sections this endpoint sends in, when each of them has one (RFC 8859 section 6: b=AS is
of the SUM category in a BUNDLE group, and b=TIAS values are added).
The estimator itself is not told: it goes on measuring the path, and its estimate is cut to the limit on its way to the pacer and to the statistics. When the limit changes, the bounded target is announced at once, without waiting for the next feedback packet.
Part of
configure_congestion_control;
a chain built by hand places it at REMOTE_BITRATE_LIMIT_SLOT.
Implementations§
Trait Implementations§
Source§impl Interceptor for RemoteBitrateLimitInterceptor
impl Interceptor for RemoteBitrateLimitInterceptor
Source§fn bind_local_stream(&mut self, _info: &StreamInfo)
fn bind_local_stream(&mut self, _info: &StreamInfo)
Source§fn unbind_local_stream(&mut self, _info: &StreamInfo)
fn unbind_local_stream(&mut self, _info: &StreamInfo)
Source§fn bind_remote_stream(&mut self, _info: &StreamInfo)
fn bind_remote_stream(&mut self, _info: &StreamInfo)
Source§fn unbind_remote_stream(&mut self, _info: &StreamInfo)
fn unbind_remote_stream(&mut self, _info: &StreamInfo)
Source§fn with<O, F>(self, f: F) -> O
fn with<O, F>(self, f: F) -> O
f, for nested (#[next]-field)
interceptors written with the Interceptor derive. The result is an
ordinary interceptor and can be placed in a Registry slot. Read moreSource§fn move_local_stream_out(&mut self, info: &StreamInfo)
fn move_local_stream_out(&mut self, info: &StreamInfo)
info moves to another RTP session (its m= section moved to another
transport, as a bundling answer does): it leaves this one without ending, so nothing
says it left (no RTCP BYE, RFC 3550 section 6.6). Unbinds it by default.Source§impl Protocol<TransportMessage<AttributedPacket>, TransportMessage<AttributedPacket>, ()> for RemoteBitrateLimitInterceptor
impl Protocol<TransportMessage<AttributedPacket>, TransportMessage<AttributedPacket>, ()> for RemoteBitrateLimitInterceptor
Source§type Rout = TransportMessage<AttributedPacket>
type Rout = TransportMessage<AttributedPacket>
Source§type Wout = TransportMessage<AttributedPacket>
type Wout = TransportMessage<AttributedPacket>
Source§fn handle_read(&mut self, msg: TaggedPacket) -> Result<(), Self::Error>
fn handle_read(&mut self, msg: TaggedPacket) -> Result<(), Self::Error>
Source§fn handle_write(&mut self, msg: TaggedPacket) -> Result<(), Self::Error>
fn handle_write(&mut self, msg: TaggedPacket) -> Result<(), Self::Error>
Source§fn handle_event(&mut self, _evt: Ein) -> Result<(), Self::Error>
fn handle_event(&mut self, _evt: Ein) -> Result<(), Self::Error>
Source§fn handle_timeout(&mut self, _now: Self::Time) -> Result<(), Self::Error>
fn handle_timeout(&mut self, _now: Self::Time) -> Result<(), Self::Error>
Auto Trait Implementations§
impl !RefUnwindSafe for RemoteBitrateLimitInterceptor
impl !UnwindSafe for RemoteBitrateLimitInterceptor
impl Forget for RemoteBitrateLimitInterceptor
impl Freeze for RemoteBitrateLimitInterceptor
impl Move for RemoteBitrateLimitInterceptor
impl Send for RemoteBitrateLimitInterceptor
impl Sync for RemoteBitrateLimitInterceptor
impl Unpin for RemoteBitrateLimitInterceptor
impl UnsafeUnpin for RemoteBitrateLimitInterceptorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<TransportMessage<AttributedPacket>>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.