pub struct InputSession<'a> { /* private fields */ }Expand description
Guard that releases held buttons and keys when the last one drops.
Implementations§
Source§impl<'a> InputSession<'a>
impl<'a> InputSession<'a>
Sourcepub fn open(backend: &'a dyn DesktopBackend) -> Self
pub fn open(backend: &'a dyn DesktopBackend) -> Self
Increment the session depth.
The last drop calls DesktopBackend::release_held.
Trait Implementations§
Source§impl Drop for InputSession<'_>
impl Drop for InputSession<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for InputSession<'a>
impl<'a> !UnwindSafe for InputSession<'a>
impl<'a> Freeze for InputSession<'a>
impl<'a> Send for InputSession<'a>
impl<'a> Sync for InputSession<'a>
impl<'a> Unpin for InputSession<'a>
impl<'a> UnsafeUnpin for InputSession<'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