Skip to main content

Opened

Struct Opened 

Source
pub struct Opened<D: Device> {
    pub device: D,
    pub queue: D::Queue,
    pub surface: Option<D::Surface>,
}
Expand description

The result of opening a device: the device, its queue, and a surface when a window was supplied.

Fields§

§device: D

The device.

§queue: D::Queue

Its submission queue.

§surface: Option<D::Surface>

The presentation surface, when opened against a window.

Trait Implementations§

Source§

impl<D: Debug + Device> Debug for Opened<D>
where D::Queue: Debug, D::Surface: Debug,

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<D> Freeze for Opened<D>
where D: Freeze, <D as Device>::Queue: Freeze, Option<<D as Device>::Surface>: Freeze,

§

impl<D> RefUnwindSafe for Opened<D>

§

impl<D> Send for Opened<D>
where D: Send, <D as Device>::Queue: Send, Option<<D as Device>::Surface>: Send,

§

impl<D> Sync for Opened<D>
where D: Sync, <D as Device>::Queue: Sync, Option<<D as Device>::Surface>: Sync,

§

impl<D> Unpin for Opened<D>
where D: Unpin, <D as Device>::Queue: Unpin, Option<<D as Device>::Surface>: Unpin,

§

impl<D> UnsafeUnpin for Opened<D>

§

impl<D> UnwindSafe for Opened<D>

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.