pub struct PixelBufferTexture { /* private fields */ }Expand description
Safe CPU producer handle backed by shell-owned pixel buffers.
Implementations§
Source§impl PixelBufferTexture
impl PixelBufferTexture
Sourcepub fn texture_id(&self) -> i64
pub fn texture_id(&self) -> i64
Identifier consumed by Flutter’s Dart Texture widget.
Sourcepub fn try_next_frame(&self) -> Result<PixelBufferTextureFrame>
pub fn try_next_frame(&self) -> Result<PixelBufferTextureFrame>
Attempts to reserve a writable pixel buffer without blocking.
Sourcepub async fn next_frame(&self) -> Result<PixelBufferTextureFrame>
pub async fn next_frame(&self) -> Result<PixelBufferTextureFrame>
Waits asynchronously for a writable pixel buffer.
Auto Trait Implementations§
impl !RefUnwindSafe for PixelBufferTexture
impl !UnwindSafe for PixelBufferTexture
impl Freeze for PixelBufferTexture
impl Send for PixelBufferTexture
impl Sync for PixelBufferTexture
impl Unpin for PixelBufferTexture
impl UnsafeUnpin for PixelBufferTexture
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