#[repr(i32)]pub enum IngressAudioEncodingPreset {
OpusStereo96kbps = 0,
OpusMono64kbs = 1,
}
Variants§
Implementations§
Source§impl IngressAudioEncodingPreset
impl IngressAudioEncodingPreset
Sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of IngressAudioEncodingPreset
.
Sourcepub fn from_i32(value: i32) -> Option<IngressAudioEncodingPreset>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<IngressAudioEncodingPreset>
Converts an i32
to a IngressAudioEncodingPreset
, or None
if value
is not a valid variant.
Source§impl IngressAudioEncodingPreset
impl IngressAudioEncodingPreset
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 IngressAudioEncodingPreset
impl Clone for IngressAudioEncodingPreset
Source§fn clone(&self) -> IngressAudioEncodingPreset
fn clone(&self) -> IngressAudioEncodingPreset
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 Debug for IngressAudioEncodingPreset
impl Debug for IngressAudioEncodingPreset
Source§impl Default for IngressAudioEncodingPreset
impl Default for IngressAudioEncodingPreset
Source§fn default() -> IngressAudioEncodingPreset
fn default() -> IngressAudioEncodingPreset
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for IngressAudioEncodingPreset
impl<'de> Deserialize<'de> for IngressAudioEncodingPreset
§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 From<IngressAudioEncodingPreset> for i32
impl From<IngressAudioEncodingPreset> for i32
Source§fn from(value: IngressAudioEncodingPreset) -> i32
fn from(value: IngressAudioEncodingPreset) -> i32
Converts to this type from the input type.
Source§impl Hash for IngressAudioEncodingPreset
impl Hash for IngressAudioEncodingPreset
Source§impl Ord for IngressAudioEncodingPreset
impl Ord for IngressAudioEncodingPreset
Source§fn cmp(&self, other: &IngressAudioEncodingPreset) -> Ordering
fn cmp(&self, other: &IngressAudioEncodingPreset) -> 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 PartialOrd for IngressAudioEncodingPreset
impl PartialOrd for IngressAudioEncodingPreset
§impl Serialize for IngressAudioEncodingPreset
impl Serialize for IngressAudioEncodingPreset
Source§impl TryFrom<i32> for IngressAudioEncodingPreset
impl TryFrom<i32> for IngressAudioEncodingPreset
Source§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<IngressAudioEncodingPreset, DecodeError>
fn try_from(value: i32) -> Result<IngressAudioEncodingPreset, DecodeError>
Performs the conversion.
impl Copy for IngressAudioEncodingPreset
impl Eq for IngressAudioEncodingPreset
impl StructuralPartialEq for IngressAudioEncodingPreset
Auto Trait Implementations§
impl Freeze for IngressAudioEncodingPreset
impl RefUnwindSafe for IngressAudioEncodingPreset
impl Send for IngressAudioEncodingPreset
impl Sync for IngressAudioEncodingPreset
impl Unpin for IngressAudioEncodingPreset
impl UnwindSafe for IngressAudioEncodingPreset
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