Struct BackendSelectionResult

Source
pub struct BackendSelectionResult<TAdapter> {
    pub adapter: TAdapter,
    pub adapter_info: GraphicsAdapterInfo,
    pub selection_time_ms: u64,
    pub attempted_backends: Vec<GraphicsBackendType>,
}
Expand description

The successful result of a backend selection operation.

This struct contains the chosen adapter handle (TAdapter), which is a generic type provided by the specific backend implementation (e.g., wgpu::Adapter), along with metadata about the selection process.

Fields§

§adapter: TAdapter

The handle to the selected graphics adapter (GPU).

§adapter_info: GraphicsAdapterInfo

Detailed information about the selected adapter.

§selection_time_ms: u64

The total time taken for the selection process, in milliseconds.

§attempted_backends: Vec<GraphicsBackendType>

A list of all backend APIs that were attempted during the selection process.

Trait Implementations§

Source§

impl<TAdapter: Debug> Debug for BackendSelectionResult<TAdapter>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<TAdapter> Freeze for BackendSelectionResult<TAdapter>
where TAdapter: Freeze,

§

impl<TAdapter> RefUnwindSafe for BackendSelectionResult<TAdapter>
where TAdapter: RefUnwindSafe,

§

impl<TAdapter> Send for BackendSelectionResult<TAdapter>
where TAdapter: Send,

§

impl<TAdapter> Sync for BackendSelectionResult<TAdapter>
where TAdapter: Sync,

§

impl<TAdapter> Unpin for BackendSelectionResult<TAdapter>
where TAdapter: Unpin,

§

impl<TAdapter> UnwindSafe for BackendSelectionResult<TAdapter>
where TAdapter: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.