Enum surfman::chains::BackBuffer
source · enum BackBuffer<Device: DeviceAPI> {
Attached,
Detached(Device::Surface),
TakenAttached,
TakenDetached,
}
Variants§
Implementations§
source§impl<Device: DeviceAPI> BackBuffer<Device>
impl<Device: DeviceAPI> BackBuffer<Device>
fn take_surface( &mut self, device: &Device, context: &mut Device::Context, ) -> Result<Device::Surface, Error>
fn take_surface_texture( &mut self, device: &Device, context: &mut Device::Context, ) -> Result<Device::SurfaceTexture, Error>
fn replace_surface( &mut self, device: &Device, context: &mut Device::Context, surface: Device::Surface, ) -> Result<(), Error>
fn replace_surface_texture( &mut self, device: &Device, context: &mut Device::Context, surface_texture: Device::SurfaceTexture, ) -> Result<(), Error>
Auto Trait Implementations§
impl<Device> Freeze for BackBuffer<Device>
impl<Device> RefUnwindSafe for BackBuffer<Device>
impl<Device> Send for BackBuffer<Device>
impl<Device> Sync for BackBuffer<Device>
impl<Device> Unpin for BackBuffer<Device>
impl<Device> UnwindSafe for BackBuffer<Device>
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