pub struct OpenDevice<A: Api> {
pub device: A::Device,
pub queue: A::Queue,
}Expand description
An open connection to a device and a queue.
This can be created from Adapter::open or backend
specific methods on the backend’s Instance or Adapter.
Fields§
§device: A::Device§queue: A::QueueTrait Implementations§
Source§impl<A: Api> From<OpenDevice<A>> for DynOpenDevice
impl<A: Api> From<OpenDevice<A>> for DynOpenDevice
Source§fn from(open_device: OpenDevice<A>) -> Self
fn from(open_device: OpenDevice<A>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<A> Freeze for OpenDevice<A>
impl<A> RefUnwindSafe for OpenDevice<A>
impl<A> Send for OpenDevice<A>
impl<A> Sync for OpenDevice<A>
impl<A> Unpin for OpenDevice<A>
impl<A> UnwindSafe for OpenDevice<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