pub struct SurfaceProducer { /* private fields */ }Implementations§
Source§impl SurfaceProducer
impl SurfaceProducer
pub fn id(&self) -> SurfaceId
pub fn cx(&self) -> Option<&SurfaceCx>
pub fn configure(&mut self, desc: BufferDesc) -> Result<(), SurfaceError>
pub fn acquire(&mut self) -> Option<(BufferRef, &SharedBuffer)>
pub fn buffers(&self) -> &[SharedBuffer]
pub fn free_buffers(&self) -> usize
pub fn submit(&mut self, frame: Frame)
pub fn request_frame(&self)
pub fn fail(&self, error: SurfaceError)
pub fn try_recv(&mut self) -> Option<SurfaceEvent>
pub async fn recv(&mut self) -> Option<SurfaceEvent>
pub fn blocking_recv(&mut self) -> Option<SurfaceEvent>
Auto Trait Implementations§
impl !RefUnwindSafe for SurfaceProducer
impl !UnwindSafe for SurfaceProducer
impl Forget for SurfaceProducer
impl Freeze for SurfaceProducer
impl Move for SurfaceProducer
impl Send for SurfaceProducer
impl Sync for SurfaceProducer
impl Unpin for SurfaceProducer
impl UnsafeUnpin for SurfaceProducer
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