pub struct EncodingParameters {
pub rid: String,
pub active: bool,
pub max_bitrate: Option<u32>,
pub scale_resolution_down_by: Option<u8>,
}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.
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.
Trait Implementations§
Source§impl Clone for EncodingParameters
impl Clone for EncodingParameters
Source§fn clone(&self) -> EncodingParameters
fn clone(&self) -> EncodingParameters
Returns a copy 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 EncodingParameters
impl Debug for 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>,
Deserialize this value from the given Serde deserializer. Read more
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§
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