pub struct RoomMediaLimits {
max_active_audio_speakers: usize,
max_video_downloads_per_receiver: usize,
}Expand description
Room media activation limits.
These limits control receiver delivery. They do not erase publication state or user subscription intent.
Fields§
§max_active_audio_speakers: usize§max_video_downloads_per_receiver: usizeImplementations§
Source§impl RoomMediaLimits
impl RoomMediaLimits
pub const DEFAULT_MAX_ACTIVE_AUDIO_SPEAKERS: usize = 4
pub const DEFAULT_MAX_VIDEO_DOWNLOADS_PER_RECEIVER: usize = 10
Sourcepub const fn try_new(
max_active_audio_speakers: usize,
max_video_downloads_per_receiver: usize,
) -> Result<Self, RoomMediaLimitsError>
pub const fn try_new( max_active_audio_speakers: usize, max_video_downloads_per_receiver: usize, ) -> Result<Self, RoomMediaLimitsError>
Build room media limits after validating their invariants.
§Errors
Returns RoomMediaLimitsError when a limit is zero.
pub const fn conservative() -> Self
pub const fn max_active_audio_speakers(self) -> usize
pub const fn max_video_downloads_per_receiver(self) -> usize
Trait Implementations§
Source§impl Clone for RoomMediaLimits
impl Clone for RoomMediaLimits
Source§fn clone(&self) -> RoomMediaLimits
fn clone(&self) -> RoomMediaLimits
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 RoomMediaLimits
impl Debug for RoomMediaLimits
Source§impl Default for RoomMediaLimits
impl Default for RoomMediaLimits
Source§impl PartialEq for RoomMediaLimits
impl PartialEq for RoomMediaLimits
impl Copy for RoomMediaLimits
impl Eq for RoomMediaLimits
impl StructuralPartialEq for RoomMediaLimits
Auto Trait Implementations§
impl Freeze for RoomMediaLimits
impl RefUnwindSafe for RoomMediaLimits
impl Send for RoomMediaLimits
impl Sync for RoomMediaLimits
impl Unpin for RoomMediaLimits
impl UnsafeUnpin for RoomMediaLimits
impl UnwindSafe for RoomMediaLimits
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