[][src]Struct surfman::platform::windows::wgl::adapter::Adapter

pub struct Adapter;

A no-op adapter.

Methods

impl Adapter[src]

pub fn default() -> Result<Adapter, Error>[src]

Returns the "best" adapter on this system.

pub fn hardware() -> Result<Adapter, Error>[src]

Returns the "best" hardware adapter on this system.

pub fn software() -> Result<Adapter, Error>[src]

Returns the "best" software adapter on this system.

The WGL backend has no software support, so this returns an error. You can use the universal backend to get a software adapter.

FIXME(pcwalton): Does it really?

Trait Implementations

impl Clone for Adapter[src]

impl Debug for Adapter[src]

Auto Trait Implementations

impl Send for Adapter

impl Sync for Adapter

impl Unpin for Adapter

impl UnwindSafe for Adapter

impl RefUnwindSafe for Adapter

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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