pub struct SourcePolicyTurn {
requested: bool,
}Expand description
Deferred request to recompute one room’s source policy.
RoomEffects decides whether the turn runs before or after its transport
work. Self::execute serializes it with publication activity.
Fields§
§requested: boolImplementations§
Source§impl SourcePolicyTurn
impl SourcePolicyTurn
pub const fn packet_selection() -> Self
pub fn request(&mut self)
pub async fn execute( self, room: &Room, media_transport: Option<&MediaTransport>, active_speaker_sources: Option<&[ActiveSpeakerSource]>, )
pub(in engine::room) async fn execute_guarded( self, room: &Room, media_transport: Option<&MediaTransport>, active_speaker_sources: Option<&[ActiveSpeakerSource]>, )
async fn execute_observed( self, room: &Room, media_transport: Option<&MediaTransport>, active_speaker_sources: Option<&[ActiveSpeakerSource]>, bandwidth: Option<&ReceiverBandwidthSnapshot>, ) -> bool
Trait Implementations§
Source§impl Debug for SourcePolicyTurn
impl Debug for SourcePolicyTurn
Source§impl Default for SourcePolicyTurn
impl Default for SourcePolicyTurn
Source§fn default() -> SourcePolicyTurn
fn default() -> SourcePolicyTurn
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SourcePolicyTurn
impl RefUnwindSafe for SourcePolicyTurn
impl Send for SourcePolicyTurn
impl Sync for SourcePolicyTurn
impl Unpin for SourcePolicyTurn
impl UnsafeUnpin for SourcePolicyTurn
impl UnwindSafe for SourcePolicyTurn
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