pub struct RequestAdapterOptions<'a> {
pub power_preference: PowerPreference,
pub compatible_surface: Option<&'a Surface>,
}
Expand description
Options for requesting adapter.
Fields§
§power_preference: PowerPreference
Power preference for the adapter.
compatible_surface: Option<&'a Surface>
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§
Source§impl<'a> Clone for RequestAdapterOptions<'a>
impl<'a> Clone for RequestAdapterOptions<'a>
Source§fn clone(&self) -> RequestAdapterOptions<'a>
fn clone(&self) -> RequestAdapterOptions<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for RequestAdapterOptions<'a>
impl<'a> RefUnwindSafe for RequestAdapterOptions<'a>
impl<'a> Send for RequestAdapterOptions<'a>
impl<'a> Sync for RequestAdapterOptions<'a>
impl<'a> Unpin for RequestAdapterOptions<'a>
impl<'a> UnwindSafe for RequestAdapterOptions<'a>
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