pub struct Surfaces { /* private fields */ }Implementations§
Source§impl Surfaces
impl Surfaces
pub fn new(gpu: &Gpu) -> Self
pub fn with_waker(self, waker: impl Fn() + Send + Sync + 'static) -> Self
pub fn stats(&self) -> SurfaceStats
pub fn latch(&mut self) -> bool
pub fn needs_frame(&self) -> bool
pub fn next_deadline(&self) -> Option<Instant>
pub fn presented(&mut self, at: Instant, interval: Duration)
pub fn maintain(&mut self)
pub fn frame(&self, id: SurfaceId) -> Option<u64>
pub fn place(&mut self, id: SurfaceId, config: SurfaceConfig)
pub fn detach(&mut self, id: SurfaceId)
pub fn bind(&mut self, id: SurfaceId)
pub fn unbind(&mut self, id: SurfaceId)
pub fn attach( &mut self, source: SurfaceSource, status: impl Fn(SurfaceStatus) + 'static, )
Auto Trait Implementations§
impl !RefUnwindSafe for Surfaces
impl !Send for Surfaces
impl !Sync for Surfaces
impl !UnwindSafe for Surfaces
impl Forget for Surfaces
impl Freeze for Surfaces
impl Move for Surfaces
impl Unpin for Surfaces
impl UnsafeUnpin for Surfaces
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