Struct smithay_client_toolkit::seat::keyboard::RepeatSource
source · [−]pub struct RepeatSource { /* private fields */ }
Expand description
An event source managing the key repetition of a keyboard
It is given to you from map_keyboard
, and you need to
insert it in your calloop event loop if you want to have functionning key repetition.
If don’t want key repetition you can just drop it.
This source will not directly generate calloop events, and the callback provided to
EventLoopHandle::insert_source()
will be ignored. Instead it triggers the
callback you provided to map_keyboard
.
Trait Implementations
sourceimpl Debug for RepeatSource
impl Debug for RepeatSource
sourceimpl EventSource for RepeatSource
impl EventSource for RepeatSource
type Metadata = WlKeyboard
type Metadata = WlKeyboard
Some metadata of your event source Read more
sourcefn process_events<F>(
&mut self,
readiness: Readiness,
token: Token,
callback: F
) -> Result<PostAction> where
F: FnMut(Event<'static>, &mut WlKeyboard),
fn process_events<F>(
&mut self,
readiness: Readiness,
token: Token,
callback: F
) -> Result<PostAction> where
F: FnMut(Event<'static>, &mut WlKeyboard),
Process any relevant events Read more
sourcefn register(
&mut self,
poll: &mut Poll,
token_factory: &mut TokenFactory
) -> Result<()>
fn register(
&mut self,
poll: &mut Poll,
token_factory: &mut TokenFactory
) -> Result<()>
Register yourself to this poll instance Read more
sourcefn reregister(
&mut self,
poll: &mut Poll,
token_factory: &mut TokenFactory
) -> Result<()>
fn reregister(
&mut self,
poll: &mut Poll,
token_factory: &mut TokenFactory
) -> Result<()>
Re-register your file descriptors Read more
sourcefn unregister(&mut self, poll: &mut Poll) -> Result<()>
fn unregister(&mut self, poll: &mut Poll) -> Result<()>
Unregister your file descriptors Read more
Auto Trait Implementations
impl !RefUnwindSafe for RepeatSource
impl !Send for RepeatSource
impl !Sync for RepeatSource
impl Unpin for RepeatSource
impl !UnwindSafe for RepeatSource
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more