pub struct SurfaceEnterGuard { /* private fields */ }Expand description
RAII guard restoring the surface context that was active before SurfaceHandle::enter. Produced by
the installed hook (carrying a restore closure) or as an inert no-op.
Implementations§
Trait Implementations§
Source§impl Drop for SurfaceEnterGuard
impl Drop for SurfaceEnterGuard
Auto Trait Implementations§
impl !RefUnwindSafe for SurfaceEnterGuard
impl !Send for SurfaceEnterGuard
impl !Sync for SurfaceEnterGuard
impl !UnwindSafe for SurfaceEnterGuard
impl Freeze for SurfaceEnterGuard
impl Unpin for SurfaceEnterGuard
impl UnsafeUnpin for SurfaceEnterGuard
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