pub struct DetachedSurface { /* private fields */ }Expand description
A created-but-not-yet-configured wgpu::Surface, produced by
SurfaceFactory::create_detached_surface on the windowing thread and
configured on the render thread.
Opaque on purpose: a shell only ever moves this value across a thread
boundary, so the wrapped wgpu type stays out of every signature above this
crate. Send, which is the whole point.
Auto Trait Implementations§
impl !Freeze for DetachedSurface
impl !RefUnwindSafe for DetachedSurface
impl !UnwindSafe for DetachedSurface
impl Send for DetachedSurface
impl Sync for DetachedSurface
impl Unpin for DetachedSurface
impl UnsafeUnpin for DetachedSurface
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