pub struct PooledVaSurface<M: SurfaceMemoryDescriptor> { /* private fields */ }
Expand description
A VA Surface obtained from a [SurfacePool]
.
The surface will automatically be returned to its pool upon dropping, provided the pool still exists and the surface is still compatible with it.
Implementations§
Source§impl<M: SurfaceMemoryDescriptor> PooledVaSurface<M>
impl<M: SurfaceMemoryDescriptor> PooledVaSurface<M>
Sourcepub fn detach_from_pool(self) -> Surface<M>
pub fn detach_from_pool(self) -> Surface<M>
Detach this surface from the pool. It will not be returned, and we can dispose of it freely.
Trait Implementations§
Source§impl<M: SurfaceMemoryDescriptor> AsRef<M> for PooledVaSurface<M>
impl<M: SurfaceMemoryDescriptor> AsRef<M> for PooledVaSurface<M>
Source§impl<M: SurfaceMemoryDescriptor> Borrow<Surface<M>> for PooledVaSurface<M>
impl<M: SurfaceMemoryDescriptor> Borrow<Surface<M>> for PooledVaSurface<M>
Source§impl<M: SurfaceMemoryDescriptor> Drop for PooledVaSurface<M>
impl<M: SurfaceMemoryDescriptor> Drop for PooledVaSurface<M>
Auto Trait Implementations§
impl<M> Freeze for PooledVaSurface<M>where
M: Freeze,
impl<M> !RefUnwindSafe for PooledVaSurface<M>
impl<M> !Send for PooledVaSurface<M>
impl<M> !Sync for PooledVaSurface<M>
impl<M> Unpin for PooledVaSurface<M>where
M: Unpin,
impl<M> !UnwindSafe for PooledVaSurface<M>
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