pub struct WgpuDiscovery {
pub adapters: Vec<WgpuAdapterProbe>,
pub diagnostics: Vec<String>,
}Expand description
Complete discovery result.
Fields§
§adapters: Vec<WgpuAdapterProbe>Successful adapter probes, in deterministic order.
diagnostics: Vec<String>Diagnostic errors from adapters that did not become sites.
Implementations§
Source§impl WgpuDiscovery
impl WgpuDiscovery
Sourcepub fn from_probes(
probes: Vec<WgpuAdapterProbe>,
diagnostics: Vec<String>,
) -> Self
pub fn from_probes( probes: Vec<WgpuAdapterProbe>, diagnostics: Vec<String>, ) -> Self
Builds a discovery result and drops unsuccessful adapters from the site list while preserving their diagnostics.
Trait Implementations§
Source§impl Clone for WgpuDiscovery
impl Clone for WgpuDiscovery
Source§fn clone(&self) -> WgpuDiscovery
fn clone(&self) -> WgpuDiscovery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WgpuDiscovery
impl Debug for WgpuDiscovery
Source§impl Default for WgpuDiscovery
impl Default for WgpuDiscovery
Source§fn default() -> WgpuDiscovery
fn default() -> WgpuDiscovery
Returns the “default value” for a type. Read more
impl Eq for WgpuDiscovery
Source§impl PartialEq for WgpuDiscovery
impl PartialEq for WgpuDiscovery
impl StructuralPartialEq for WgpuDiscovery
Auto Trait Implementations§
impl Freeze for WgpuDiscovery
impl RefUnwindSafe for WgpuDiscovery
impl Send for WgpuDiscovery
impl Sync for WgpuDiscovery
impl Unpin for WgpuDiscovery
impl UnsafeUnpin for WgpuDiscovery
impl UnwindSafe for WgpuDiscovery
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.