#[repr(i32)]pub enum BackupCodecPolicy {
PreferRegression = 0,
Simulcast = 1,
Regression = 2,
}Expand description
Policy for publisher to handle subscribers that are unable to support the primary codec of a track
Variants§
PreferRegression = 0
default behavior, the track prefer to regress to backup codec and all subscribers will receive the backup codec, the sfu will try to regress codec if possible but not assured.
Simulcast = 1
encoding/send the primary and backup codec simultaneously
Regression = 2
force the track to regress to backup codec, this option can be used in video conference or the publisher has limited bandwidth/encoding power
Implementations§
Source§impl BackupCodecPolicy
impl BackupCodecPolicy
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for BackupCodecPolicy
impl Clone for BackupCodecPolicy
Source§fn clone(&self) -> BackupCodecPolicy
fn clone(&self) -> BackupCodecPolicy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BackupCodecPolicy
impl Debug for BackupCodecPolicy
Source§impl Default for BackupCodecPolicy
impl Default for BackupCodecPolicy
Source§fn default() -> BackupCodecPolicy
fn default() -> BackupCodecPolicy
§impl<'de> Deserialize<'de> for BackupCodecPolicy
impl<'de> Deserialize<'de> for BackupCodecPolicy
§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 From<BackupCodecPolicy> for i32
impl From<BackupCodecPolicy> for i32
Source§fn from(value: BackupCodecPolicy) -> i32
fn from(value: BackupCodecPolicy) -> i32
Source§impl Hash for BackupCodecPolicy
impl Hash for BackupCodecPolicy
Source§impl Ord for BackupCodecPolicy
impl Ord for BackupCodecPolicy
Source§fn cmp(&self, other: &BackupCodecPolicy) -> Ordering
fn cmp(&self, other: &BackupCodecPolicy) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for BackupCodecPolicy
impl PartialEq for BackupCodecPolicy
Source§fn eq(&self, other: &BackupCodecPolicy) -> bool
fn eq(&self, other: &BackupCodecPolicy) -> bool
self and other values to be equal, and is used by ==.