pub struct GraphicsGuard<'a> { /* private fields */ }Expand description
Holds the process-wide graphics lock. Use Self::with_lvgl to run
operations that need a session. A guard can move between threads, and
only one thread can use it at a time.
ⓘ
fn require_sync<T: Sync>() {}
require_sync::<graphics::GraphicsGuard<'static>>();Implementations§
Source§impl GraphicsGuard<'_>
impl GraphicsGuard<'_>
Auto Trait Implementations§
impl<'a> Freeze for GraphicsGuard<'a>
impl<'a> !RefUnwindSafe for GraphicsGuard<'a>
impl<'a> Send for GraphicsGuard<'a>
impl<'a> !Sync for GraphicsGuard<'a>
impl<'a> Unpin for GraphicsGuard<'a>
impl<'a> UnsafeUnpin for GraphicsGuard<'a>
impl<'a> !UnwindSafe for GraphicsGuard<'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