pub struct FrontBuffer<'a> { /* private fields */ }Expand description
Shared read-only view of a framebuffer currently handed to the display scan-out engine (LTDC CFBAR).
Deliberately exposes no &mut accessors: the scan-out path reads these
pixels at pixel-clock rate, so CPU writes would tear. Obtaining write
access requires swapping this buffer out via Scanout::swap first.
Implementations§
Source§impl<'a> FrontBuffer<'a>
impl<'a> FrontBuffer<'a>
Sourcepub fn wrap(fb: &'a FrameBuffer) -> Self
pub fn wrap(fb: &'a FrameBuffer) -> Self
Wrap a shared reference to a FrameBuffer.
Sourcepub fn framebuffer(&self) -> &FrameBuffer
pub fn framebuffer(&self) -> &FrameBuffer
Underlying FrameBuffer.
Sourcepub fn stride_bytes(&self) -> u32
pub fn stride_bytes(&self) -> u32
Row stride in bytes.
Auto Trait Implementations§
impl<'a> Freeze for FrontBuffer<'a>
impl<'a> RefUnwindSafe for FrontBuffer<'a>
impl<'a> Send for FrontBuffer<'a>
impl<'a> Sync for FrontBuffer<'a>
impl<'a> Unpin for FrontBuffer<'a>
impl<'a> UnsafeUnpin for FrontBuffer<'a>
impl<'a> UnwindSafe for FrontBuffer<'a>
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