pub struct EncodingParameters {
pub rid: String,
pub active: bool,
pub codec: Option<Codec>,
pub max_bitrate: Option<u32>,
pub scale_resolution_down_by: Option<u8>,
pub scalability_mode: Option<ScalabilityMode>,
}Expand description
Representation of an RTCRtpEncodingParameters.
Fields§
§rid: StringRTP stream ID (RID) to be sent using the RID header extension.
active: boolIndicator whether this encoding is actively being sent.
Being false doesn’t cause the SSRC to be removed, so an RTCP BYE
is not sent.
codec: Option<Codec>Concrete Codec being used for this encoding’s RTP stream.
If None, then any negotiated codec can be used.
max_bitrate: Option<u32>Maximum bitrate that can be used to send this encoding.
User agent is free to allocate bandwidth between the encodings, as long as this value is not exceeded.
scale_resolution_down_by: Option<u8>Factor for scaling down video’s resolution in each dimension before sending.
Only present for video encodings.
For example, if this value is 2, a video will be scaled down by a
factor of 2 in each dimension, resulting in sending a video of one
quarter the size. If this value is 1, the video won’t be affected.
Must be greater than or equal to 1.
scalability_mode: Option<ScalabilityMode>SVC (Scalable Video Coding) scalability mode.
Trait Implementations§
Source§impl Clone for EncodingParameters
impl Clone for EncodingParameters
Source§fn clone(&self) -> EncodingParameters
fn clone(&self) -> EncodingParameters
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EncodingParameters
impl Debug for EncodingParameters
Source§impl Default for EncodingParameters
impl Default for EncodingParameters
Source§fn default() -> EncodingParameters
fn default() -> EncodingParameters
Source§impl<'de> Deserialize<'de> for EncodingParameters
impl<'de> Deserialize<'de> for EncodingParameters
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for EncodingParameters
impl PartialEq for EncodingParameters
Source§impl Serialize for EncodingParameters
impl Serialize for EncodingParameters
impl Eq for EncodingParameters
impl StructuralPartialEq for EncodingParameters
Auto Trait Implementations§
impl Freeze for EncodingParameters
impl RefUnwindSafe for EncodingParameters
impl Send for EncodingParameters
impl Sync for EncodingParameters
impl Unpin for EncodingParameters
impl UnwindSafe for EncodingParameters
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)