#[non_exhaustive]pub enum CodecPreferenceReason {
NotDetected,
Platform,
Policy,
}Expand description
Why “Prefer H.264” could not apply, so the device publishes VP8.
Its JSON is "not_detected", "platform" or "policy".
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotDetected
The run-time check found no usable hardware H.264 encoder
(H264Detection::NotDetected).
Platform
This platform can’t publish H.264 here: no run-time check on Linux, Android or Windows
yet (H264Detection::NoPlatformCheck), or an iOS before 17.4, which can’t confirm a
hardware encoder (H264Detection::Unconfirmed).
Policy
The call’s media policy (the room’s or the install’s codecs) doesn’t allow H.264
(effective_publish_codec_under_policy).
Implementations§
Trait Implementations§
Source§impl Clone for CodecPreferenceReason
impl Clone for CodecPreferenceReason
impl Copy for CodecPreferenceReason
Source§impl Debug for CodecPreferenceReason
impl Debug for CodecPreferenceReason
Source§impl<'de> Deserialize<'de> for CodecPreferenceReason
impl<'de> Deserialize<'de> for CodecPreferenceReason
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
impl Eq for CodecPreferenceReason
Source§impl Hash for CodecPreferenceReason
impl Hash for CodecPreferenceReason
Source§impl PartialEq for CodecPreferenceReason
impl PartialEq for CodecPreferenceReason
Source§impl Serialize for CodecPreferenceReason
impl Serialize for CodecPreferenceReason
impl StructuralPartialEq for CodecPreferenceReason
Auto Trait Implementations§
impl Forget for CodecPreferenceReason
impl Freeze for CodecPreferenceReason
impl Move for CodecPreferenceReason
impl RefUnwindSafe for CodecPreferenceReason
impl Send for CodecPreferenceReason
impl Sync for CodecPreferenceReason
impl Unpin for CodecPreferenceReason
impl UnsafeUnpin for CodecPreferenceReason
impl UnwindSafe for CodecPreferenceReason
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CryptoSafe for T
impl<T> CryptoSafe for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more