[][src]Trait i3status_rs::blocks::keyboard_layout::KeyboardLayoutMonitor

pub trait KeyboardLayoutMonitor {
    fn keyboard_layout(&self) -> Result<String, Error>;
fn keyboard_variant(&self) -> Result<String, Error>;
fn must_poll(&self) -> bool; fn monitor(&self, _id: usize, _update_request: Sender<Task>) { ... } }

Required methods

fn keyboard_layout(&self) -> Result<String, Error>[src]

Retrieve the current keyboard layout.

fn keyboard_variant(&self) -> Result<String, Error>[src]

Retrieve the current keyboard variant.

fn must_poll(&self) -> bool[src]

Specify that the monitor does not send update requests and must be polled manually.

Loading content...

Provided methods

fn monitor(&self, _id: usize, _update_request: Sender<Task>)[src]

Monitor layout changes and send updates via the update_request channel. By default, this method does nothing.

Loading content...

Implementors

impl KeyboardLayoutMonitor for KbdDaemonBus[src]

impl KeyboardLayoutMonitor for LocaleBus[src]

fn monitor(&self, id: usize, update_request: Sender<Task>)[src]

Monitor Locale property changes in a separate thread and send updates via the update_request channel.

impl KeyboardLayoutMonitor for SetXkbMap[src]

impl KeyboardLayoutMonitor for Sway[src]

fn monitor(&self, id: usize, update_request: Sender<Task>)[src]

Monitor layout changes in a separate thread and send updates via the update_request channel.

Loading content...