zbus_systemd 0.26000.0

A pure-Rust library to interact with systemd DBus services
Documentation
// This file is autogenerated, do not manually edit.

use crate::zbus::proxy;

/// Proxy object for `org.freedesktop.locale1`.
#[proxy(
    interface = "org.freedesktop.locale1",
    gen_blocking = false,
    default_service = "org.freedesktop.locale1",
    default_path = "/org/freedesktop/locale1"
)]
pub trait Localed {
    /// [📖](https://www.freedesktop.org/software/systemd/man/systemd.directives.html#SetLocale()) Call interface method `SetLocale`.
    #[zbus(name = "SetLocale")]
    fn set_locale(&self, locale: Vec<String>, interactive: bool) -> crate::zbus::Result<()>;

    /// [📖](https://www.freedesktop.org/software/systemd/man/systemd.directives.html#SetVConsoleKeyboard()) Call interface method `SetVConsoleKeyboard`.
    #[zbus(name = "SetVConsoleKeyboard")]
    fn set_v_console_keyboard(
        &self,
        keymap: String,
        keymap_toggle: String,
        convert: bool,
        interactive: bool,
    ) -> crate::zbus::Result<()>;

    /// [📖](https://www.freedesktop.org/software/systemd/man/systemd.directives.html#SetX11Keyboard()) Call interface method `SetX11Keyboard`.
    #[zbus(name = "SetX11Keyboard")]
    fn set_x11_keyboard(
        &self,
        layout: String,
        model: String,
        variant: String,
        options: String,
        convert: bool,
        interactive: bool,
    ) -> crate::zbus::Result<()>;

    /// Get property `Locale`.
    #[zbus(property(emits_changed_signal = "true"), name = "Locale")]
    fn locale(&self) -> crate::zbus::Result<Vec<String>>;

    /// Get property `X11Layout`.
    #[zbus(property(emits_changed_signal = "true"), name = "X11Layout")]
    fn x11_layout(&self) -> crate::zbus::Result<String>;

    /// Get property `X11Model`.
    #[zbus(property(emits_changed_signal = "true"), name = "X11Model")]
    fn x11_model(&self) -> crate::zbus::Result<String>;

    /// Get property `X11Variant`.
    #[zbus(property(emits_changed_signal = "true"), name = "X11Variant")]
    fn x11_variant(&self) -> crate::zbus::Result<String>;

    /// Get property `X11Options`.
    #[zbus(property(emits_changed_signal = "true"), name = "X11Options")]
    fn x11_options(&self) -> crate::zbus::Result<String>;

    /// Get property `VConsoleKeymap`.
    #[zbus(property(emits_changed_signal = "true"), name = "VConsoleKeymap")]
    fn v_console_keymap(&self) -> crate::zbus::Result<String>;

    /// Get property `VConsoleKeymapToggle`.
    #[zbus(property(emits_changed_signal = "true"), name = "VConsoleKeymapToggle")]
    fn v_console_keymap_toggle(&self) -> crate::zbus::Result<String>;
}