pub struct UILock<'a> { /* private fields */ }
Expand description
A simple object that locks UI and calls unlock_ui on it when being dropped (Since it holds a mutable ref to UI its existence locks UI interaction)
Exists to provide a mutex mechanism for UIs which cannot do anything else
while an crate::IO
is using the process’ tty.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for UILock<'a>
impl<'a> !RefUnwindSafe for UILock<'a>
impl<'a> !Send for UILock<'a>
impl<'a> !Sync for UILock<'a>
impl<'a> Unpin for UILock<'a>
impl<'a> !UnwindSafe for UILock<'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