#[repr(i32)]pub enum AudioCodec {
Unknown = 0,
Opus = 1,
}
Expand description
§Audio codec
This refers to the codec used for an audio stream.
Variants§
Implementations§
Source§impl AudioCodec
impl AudioCodec
Source§impl AudioCodec
impl AudioCodec
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 AudioCodec
impl Clone for AudioCodec
Source§fn clone(&self) -> AudioCodec
fn clone(&self) -> AudioCodec
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 AudioCodec
impl Debug for AudioCodec
Source§impl Default for AudioCodec
impl Default for AudioCodec
Source§fn default() -> AudioCodec
fn default() -> AudioCodec
Returns the “default value” for a type. Read more
Source§impl From<AudioCodec> for i32
impl From<AudioCodec> for i32
Source§fn from(value: AudioCodec) -> i32
fn from(value: AudioCodec) -> i32
Converts to this type from the input type.
Source§impl Hash for AudioCodec
impl Hash for AudioCodec
Source§impl Ord for AudioCodec
impl Ord for AudioCodec
Source§fn cmp(&self, other: &AudioCodec) -> Ordering
fn cmp(&self, other: &AudioCodec) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AudioCodec
impl PartialEq for AudioCodec
Source§impl PartialOrd for AudioCodec
impl PartialOrd for AudioCodec
Source§impl TryFrom<i32> for AudioCodec
impl TryFrom<i32> for AudioCodec
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<AudioCodec, UnknownEnumValue>
fn try_from(value: i32) -> Result<AudioCodec, UnknownEnumValue>
Performs the conversion.
impl Copy for AudioCodec
impl Eq for AudioCodec
impl StructuralPartialEq for AudioCodec
Auto Trait Implementations§
impl Freeze for AudioCodec
impl RefUnwindSafe for AudioCodec
impl Send for AudioCodec
impl Sync for AudioCodec
impl Unpin for AudioCodec
impl UnwindSafe for AudioCodec
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