pub struct SourcePolicy {
layout: Option<SourceLayoutPolicy>,
adaptation: SourceAdaptationPolicy,
active_speaker: Option<ActiveSpeakerPolicy>,
video_bitrate_cap: Option<Bitrate>,
}Expand description
room policy applied to one published source
SourcePolicy is the source contract between application publish intent
and core room policy
it tells core what it may do with a source after
publish, but it does not name the product feature that created the stream
and it does not limit how many streams a user may publish
Fields§
§layout: Option<SourceLayoutPolicy>§adaptation: SourceAdaptationPolicy§active_speaker: Option<ActiveSpeakerPolicy>§video_bitrate_cap: Option<Bitrate>Implementations§
Source§impl SourcePolicy
impl SourcePolicy
pub const fn new( layout: Option<SourceLayoutPolicy>, adaptation: SourceAdaptationPolicy, active_speaker: Option<ActiveSpeakerPolicy>, ) -> Self
pub const fn with_video_bitrate_cap(self, max_bitrate: Bitrate) -> Self
pub const fn layout(self) -> Option<SourceLayoutPolicy>
pub const fn adaptation(self) -> SourceAdaptationPolicy
pub const fn active_speaker(self) -> Option<ActiveSpeakerPolicy>
pub const fn video_bitrate_cap(self) -> Option<Bitrate>
Trait Implementations§
Source§impl Clone for SourcePolicy
impl Clone for SourcePolicy
Source§fn clone(&self) -> SourcePolicy
fn clone(&self) -> SourcePolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SourcePolicy
impl Debug for SourcePolicy
Source§impl PartialEq for SourcePolicy
impl PartialEq for SourcePolicy
impl Copy for SourcePolicy
impl Eq for SourcePolicy
impl StructuralPartialEq for SourcePolicy
Auto Trait Implementations§
impl Freeze for SourcePolicy
impl RefUnwindSafe for SourcePolicy
impl Send for SourcePolicy
impl Sync for SourcePolicy
impl Unpin for SourcePolicy
impl UnsafeUnpin for SourcePolicy
impl UnwindSafe for SourcePolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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