pub(crate) struct MediaControlPlan<P = (), C = ()> {
producers: Vec<(ProducerRouteControl, P)>,
consumers: Vec<(ConsumerRouteControl, C)>,
receiver_bwe_targets: Vec<ReceiverBweTargetUpdate>,
}Fields§
§producers: Vec<(ProducerRouteControl, P)>§consumers: Vec<(ConsumerRouteControl, C)>§receiver_bwe_targets: Vec<ReceiverBweTargetUpdate>Implementations§
Source§impl<P, C> MediaControlPlan<P, C>
impl<P, C> MediaControlPlan<P, C>
pub(crate) fn push_producer( &mut self, source: TransportSourceKey, update: SourceActivityUpdate, finish: P, )
pub(crate) fn push_consumer(&mut self, control: ConsumerRouteControl, finish: C)
pub(crate) fn set_receiver_bwe_targets( &mut self, updates: Vec<ReceiverBweTargetUpdate>, )
pub(crate) fn append(&mut self, other: Self)
pub(crate) fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<P, C> Freeze for MediaControlPlan<P, C>
impl<P, C> RefUnwindSafe for MediaControlPlan<P, C>where
P: RefUnwindSafe,
C: RefUnwindSafe,
impl<P, C> Send for MediaControlPlan<P, C>
impl<P, C> Sync for MediaControlPlan<P, C>
impl<P, C> Unpin for MediaControlPlan<P, C>
impl<P, C> UnsafeUnpin for MediaControlPlan<P, C>
impl<P, C> UnwindSafe for MediaControlPlan<P, C>where
P: UnwindSafe,
C: UnwindSafe,
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more