pub struct AdapterChoiceReport {
pub policy: AdapterPolicy,
pub chosen: Option<usize>,
pub reason: ChoiceReason,
pub explanation: String,
pub records: Vec<AdapterRecord>,
}Expand description
What a host’s adapter choice was, as its capabilities and failure reports state it.
Fields§
§policy: AdapterPolicyThe ALPHA2_GPU_ADAPTER policy the choice was made under.
chosen: Option<usize>The renderer’s adapter in records; None for a device from elsewhere.
reason: ChoiceReasonWhy the renderer is on that adapter.
explanation: StringOne sentence naming the chosen adapter, and the runner-up where the reason compares them.
records: Vec<AdapterRecord>Every adapter the choice considered, in the high-performance order.
Implementations§
Source§impl AdapterChoiceReport
impl AdapterChoiceReport
Sourcepub fn ranked(
policy: AdapterPolicy,
records: Vec<AdapterRecord>,
order: &AdapterOrder,
) -> Self
pub fn ranked( policy: AdapterPolicy, records: Vec<AdapterRecord>, order: &AdapterOrder, ) -> Self
The report for records ranked into order under policy, taking the first.
Sourcepub fn chosen_record(&self) -> Option<&AdapterRecord>
pub fn chosen_record(&self) -> Option<&AdapterRecord>
The record of the adapter the renderer is on.
Trait Implementations§
Source§impl Clone for AdapterChoiceReport
impl Clone for AdapterChoiceReport
Source§impl Debug for AdapterChoiceReport
impl Debug for AdapterChoiceReport
impl Eq for AdapterChoiceReport
Source§impl PartialEq for AdapterChoiceReport
impl PartialEq for AdapterChoiceReport
impl StructuralPartialEq for AdapterChoiceReport
Auto Trait Implementations§
impl Freeze for AdapterChoiceReport
impl RefUnwindSafe for AdapterChoiceReport
impl Send for AdapterChoiceReport
impl Sync for AdapterChoiceReport
impl Unpin for AdapterChoiceReport
impl UnsafeUnpin for AdapterChoiceReport
impl UnwindSafe for AdapterChoiceReport
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.