pub struct TextSettingsHandler {
pub inspect_status: InputHandlerStatus,
/* private fields */
}
Expand description
The text settings handler instance. Refer to as text_settings_handler::TextSettingsHandler
.
Its task is to decorate an input event with the keymap identifier. The instance can
be freely cloned, each clone is thread-safely sharing data with others.
Fields§
§inspect_status: InputHandlerStatus
The inventory of this handler’s Inspect status.
Implementations§
Source§impl TextSettingsHandler
impl TextSettingsHandler
Sourcepub fn new(
initial_keymap: Option<KeymapId>,
initial_autorepeat: Option<Settings>,
input_handlers_node: &Node,
metrics_logger: MetricsLogger,
) -> Rc<Self>
pub fn new( initial_keymap: Option<KeymapId>, initial_autorepeat: Option<Settings>, input_handlers_node: &Node, metrics_logger: MetricsLogger, ) -> Rc<Self>
Creates a new text settings handler instance.
initial_*
contain the desired initial values to be served. Usually
you want the defaults.
Sourcepub async fn process_keymap_configuration_from(
self: &Rc<Self>,
proxy: KeyboardProxy,
) -> Result<(), Error>
pub async fn process_keymap_configuration_from( self: &Rc<Self>, proxy: KeyboardProxy, ) -> Result<(), Error>
Processes requests for keymap change from stream
.
Sourcepub fn serve(self: Rc<Self>, proxy: KeyboardProxy)
pub fn serve(self: Rc<Self>, proxy: KeyboardProxy)
Starts reading events from the stream. Does not block.
Sourcepub fn get_keymap_id(&self) -> Option<KeymapId>
pub fn get_keymap_id(&self) -> Option<KeymapId>
Gets the currently active keymap ID.
Sourcepub fn get_autorepeat_settings(&self) -> Option<Settings>
pub fn get_autorepeat_settings(&self) -> Option<Settings>
Gets the currently active autorepeat settings.
Trait Implementations§
Source§impl UnhandledInputHandler for TextSettingsHandler
impl UnhandledInputHandler for TextSettingsHandler
Source§fn handle_unhandled_input_event<'async_trait>(
self: Rc<Self>,
unhandled_input_event: UnhandledInputEvent,
) -> Pin<Box<dyn Future<Output = Vec<InputEvent>> + 'async_trait>>where
Self: 'async_trait,
fn handle_unhandled_input_event<'async_trait>(
self: Rc<Self>,
unhandled_input_event: UnhandledInputEvent,
) -> Pin<Box<dyn Future<Output = Vec<InputEvent>> + 'async_trait>>where
Self: 'async_trait,
Returns a vector of InputEvents to propagate to the next InputHandler. Read more
fn set_handler_healthy(self: Rc<Self>)
fn set_handler_unhealthy(self: Rc<Self>, msg: &str)
Auto Trait Implementations§
impl !Freeze for TextSettingsHandler
impl !RefUnwindSafe for TextSettingsHandler
impl Send for TextSettingsHandler
impl !Sync for TextSettingsHandler
impl Unpin for TextSettingsHandler
impl !UnwindSafe for TextSettingsHandler
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> InputHandler for Twhere
T: UnhandledInputHandler,
impl<T> InputHandler for Twhere
T: UnhandledInputHandler,
Source§fn handle_input_event<'async_trait>(
self: Rc<T>,
input_event: InputEvent,
) -> Pin<Box<dyn Future<Output = Vec<InputEvent>> + 'async_trait>>where
T: 'async_trait,
fn handle_input_event<'async_trait>(
self: Rc<T>,
input_event: InputEvent,
) -> Pin<Box<dyn Future<Output = Vec<InputEvent>> + 'async_trait>>where
T: 'async_trait,
Returns a vector of InputEvents to propagate to the next InputHandler. Read more