pub trait Backend:
Sized
+ Sync
+ Send
+ 'static {
type Frame: FrameOperations;
// Required methods
fn init(handle: impl GPUSurfaceHandle, width: u32, height: u32) -> Self;
fn resize(&mut self, width: u32, height: u32);
fn acquire(&mut self) -> Option<Self::Frame>;
fn present(&mut self, frame: Self::Frame);
}Required Associated Types§
type Frame: FrameOperations
Required Methods§
fn init(handle: impl GPUSurfaceHandle, width: u32, height: u32) -> Self
fn resize(&mut self, width: u32, height: u32)
fn acquire(&mut self) -> Option<Self::Frame>
fn present(&mut self, frame: Self::Frame)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".