Struct wgpu_types::RequestAdapterOptions[][src]

#[repr(C)]
pub struct RequestAdapterOptions<S> { pub power_preference: PowerPreference, pub compatible_surface: Option<S>, }

Options for requesting adapter.

Fields

power_preference: PowerPreference

Power preference for the adapter.

compatible_surface: Option<S>

Surface that is required to be presentable with the requested adapter. This does not create the surface, only guarantees that the adapter can present to said surface.

Trait Implementations

impl<S: Clone> Clone for RequestAdapterOptions<S>[src]

impl<S: Debug> Debug for RequestAdapterOptions<S>[src]

impl<S> Default for RequestAdapterOptions<S>[src]

impl<S: Eq> Eq for RequestAdapterOptions<S>[src]

impl<S: Hash> Hash for RequestAdapterOptions<S>[src]

impl<S: PartialEq> PartialEq<RequestAdapterOptions<S>> for RequestAdapterOptions<S>[src]

impl<S> StructuralEq for RequestAdapterOptions<S>[src]

impl<S> StructuralPartialEq for RequestAdapterOptions<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for RequestAdapterOptions<S> where
    S: RefUnwindSafe

impl<S> Send for RequestAdapterOptions<S> where
    S: Send

impl<S> Sync for RequestAdapterOptions<S> where
    S: Sync

impl<S> Unpin for RequestAdapterOptions<S> where
    S: Unpin

impl<S> UnwindSafe for RequestAdapterOptions<S> where
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.