pub enum ChoiceReason {
Pinned,
OnlyAdapter,
MostGpuEncoders,
Decodes,
HighPerformanceOrder,
PerformancePolicy,
NoSharedDevice,
}Expand description
Why the chosen adapter was taken.
Variants§
Pinned
ALPHA2_GPU_ADAPTER names it.
OnlyAdapter
It is the only hardware adapter that renders, or the only adapter at all.
MostGpuEncoders
It encodes more codecs on the GPU than the next one.
Decodes
It encodes as many codecs as the next one, and decodes on the GPU where that one does not.
HighPerformanceOrder
Nothing else tells it from the next one: it comes first in the high-performance order.
PerformancePolicy
ALPHA2_GPU_ADAPTER=performance: the first hardware adapter in the high-performance order.
No adapter could share a device with the video codecs, so decode and encode run without the GPU.
Implementations§
Trait Implementations§
Source§impl Clone for ChoiceReason
impl Clone for ChoiceReason
impl Copy for ChoiceReason
Source§impl Debug for ChoiceReason
impl Debug for ChoiceReason
impl Eq for ChoiceReason
Source§impl PartialEq for ChoiceReason
impl PartialEq for ChoiceReason
impl StructuralPartialEq for ChoiceReason
Auto Trait Implementations§
impl Freeze for ChoiceReason
impl RefUnwindSafe for ChoiceReason
impl Send for ChoiceReason
impl Sync for ChoiceReason
impl Unpin for ChoiceReason
impl UnsafeUnpin for ChoiceReason
impl UnwindSafe for ChoiceReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.