pub struct ExposedAdapter<A: Api> {
pub adapter: A::Adapter,
pub info: AdapterInfo,
pub features: Features,
pub capabilities: Capabilities,
}Expand description
An adapter with all the information needed to reason about its capabilities.
These are either made by Instance::enumerate_adapters or by backend specific
methods on the backend Instance or Adapter.
Fields§
§adapter: A::Adapter§info: AdapterInfo§features: Features§capabilities: CapabilitiesTrait Implementations§
Source§impl<A: Api> From<ExposedAdapter<A>> for DynExposedAdapter
impl<A: Api> From<ExposedAdapter<A>> for DynExposedAdapter
Source§fn from(exposed_adapter: ExposedAdapter<A>) -> Self
fn from(exposed_adapter: ExposedAdapter<A>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<A> Forget for ExposedAdapter<A>
impl<A> Freeze for ExposedAdapter<A>
impl<A> Move for ExposedAdapter<A>
impl<A> RefUnwindSafe for ExposedAdapter<A>where
<A as Api>::Adapter: RefUnwindSafe,
String: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
NonZero<u64>: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
impl<A> Send for ExposedAdapter<A>
impl<A> Sync for ExposedAdapter<A>
impl<A> Unpin for ExposedAdapter<A>
impl<A> UnsafeUnpin for ExposedAdapter<A>where
<A as Api>::Adapter: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static str: UnsafeUnpin,
String: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
PhantomData<CooperativeMatrixProperties>: UnsafeUnpin,
impl<A> UnwindSafe for ExposedAdapter<A>where
<A as Api>::Adapter: UnwindSafe,
RawVecInner: UnwindSafe,
&'static str: UnwindSafe,
String: UnwindSafe,
InternalBitFlags: UnwindSafe,
InternalBitFlags: UnwindSafe,
NonZero<u64>: UnwindSafe,
InternalBitFlags: UnwindSafe,
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