pub struct SourceEncodingDescriptorParts {
pub encoding_id: SourceEncodingId,
pub source_id: PublishedSourceId,
pub rid: Option<Rid>,
pub primary_ssrc: Option<Ssrc>,
pub repair_ssrc: Option<Ssrc>,
pub max_bitrate: Option<Bitrate>,
pub resolution_scale: Option<u16>,
pub max_framerate: Option<u16>,
pub policy_role: Option<UploadLayerPolicyRole>,
pub negotiated_format: Option<MediaFormat>,
}Expand description
Construction input for SourceEncodingDescriptor
The fields are optional where negotiation may not have learned the fact yet. The source and encoding ids must still be stable before the descriptor is stored in room state
Fields§
§encoding_id: SourceEncodingIdStable encoding id allocated by the room-domain registry.
source_id: PublishedSourceIdParent source id.
rid: Option<Rid>Negotiated RID for RID-based simulcast.
primary_ssrc: Option<Ssrc>Primary RTP SSRC when available.
repair_ssrc: Option<Ssrc>Repair RTP SSRC when available.
max_bitrate: Option<Bitrate>Optional bitrate ceiling advertised for this encoding.
resolution_scale: Option<u16>Optional resolution downscale advertised for this encoding.
max_framerate: Option<u16>Optional frame-rate ceiling advertised for this encoding.
policy_role: Option<UploadLayerPolicyRole>Optional policy role advertised for this encoding.
negotiated_format: Option<MediaFormat>Negotiated codec and payload information when available.
Trait Implementations§
Source§impl Clone for SourceEncodingDescriptorParts
impl Clone for SourceEncodingDescriptorParts
Source§fn clone(&self) -> SourceEncodingDescriptorParts
fn clone(&self) -> SourceEncodingDescriptorParts
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 PartialEq for SourceEncodingDescriptorParts
impl PartialEq for SourceEncodingDescriptorParts
Source§fn eq(&self, other: &SourceEncodingDescriptorParts) -> bool
fn eq(&self, other: &SourceEncodingDescriptorParts) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SourceEncodingDescriptorParts
impl StructuralPartialEq for SourceEncodingDescriptorParts
Auto Trait Implementations§
impl Freeze for SourceEncodingDescriptorParts
impl RefUnwindSafe for SourceEncodingDescriptorParts
impl Send for SourceEncodingDescriptorParts
impl Sync for SourceEncodingDescriptorParts
impl Unpin for SourceEncodingDescriptorParts
impl UnsafeUnpin for SourceEncodingDescriptorParts
impl UnwindSafe for SourceEncodingDescriptorParts
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