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: DThe device.
queue: D::QueueIts submission queue.
surface: Option<D::Surface>The presentation surface, when opened against a window.
Trait Implementations§
Auto Trait Implementations§
impl<D> Freeze for Opened<D>
impl<D> RefUnwindSafe for Opened<D>where
D: RefUnwindSafe,
<D as Device>::Queue: RefUnwindSafe,
Option<<D as Device>::Surface>: RefUnwindSafe,
impl<D> Send for Opened<D>
impl<D> Sync for Opened<D>
impl<D> Unpin for Opened<D>
impl<D> UnsafeUnpin for Opened<D>where
D: UnsafeUnpin,
<D as Device>::Queue: UnsafeUnpin,
Option<<D as Device>::Surface>: UnsafeUnpin,
impl<D> UnwindSafe for Opened<D>
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