pub struct ControllerProxy<'p>(/* private fields */);
Implementations§
Source§impl<'p> ControllerProxy<'p>
impl<'p> ControllerProxy<'p>
Sourcepub async fn new(conn: &Connection) -> Result<ControllerProxy<'p>>
pub async fn new(conn: &Connection) -> Result<ControllerProxy<'p>>
Creates a new proxy with the default service and path.
Sourcepub fn builder(conn: &Connection) -> Builder<'p, Self>
pub fn builder(conn: &Connection) -> Builder<'p, Self>
Returns a customizable builder for this proxy.
Sourcepub fn into_inner(self) -> Proxy<'p>
pub fn into_inner(self) -> Proxy<'p>
Consumes self
, returning the underlying zbus::Proxy
.
Sourcepub fn inner_mut(&mut self) -> &mut Proxy<'p>
pub fn inner_mut(&mut self) -> &mut Proxy<'p>
The mutable reference to the underlying zbus::Proxy
.
Sourcepub async fn add_input_method_group(&self, group: &str) -> Result<()>
pub async fn add_input_method_group(&self, group: &str) -> Result<()>
AddInputMethodGroup method
Sourcepub async fn addon_for_im(&self, im_name: &str) -> Result<String>
pub async fn addon_for_im(&self, im_name: &str) -> Result<String>
AddonForIM method
Sourcepub async fn available_input_methods(
&self,
) -> Result<Vec<(String, String, String, String, String, String, bool)>>
pub async fn available_input_methods( &self, ) -> Result<Vec<(String, String, String, String, String, String, bool)>>
AvailableInputMethods method
Sourcepub async fn available_keyboard_layouts(
&self,
) -> Result<Vec<(String, String, Vec<String>, Vec<(String, String, Vec<String>)>)>>
pub async fn available_keyboard_layouts( &self, ) -> Result<Vec<(String, String, Vec<String>, Vec<(String, String, Vec<String>)>)>>
AvailableKeyboardLayouts method
Sourcepub async fn can_restart(&self) -> Result<bool>
pub async fn can_restart(&self) -> Result<bool>
CanRestart method
Sourcepub async fn check_update(&self) -> Result<bool>
pub async fn check_update(&self) -> Result<bool>
CheckUpdate method
Sourcepub async fn configure_addon(&self, arg: &str) -> Result<()>
pub async fn configure_addon(&self, arg: &str) -> Result<()>
ConfigureAddon method
Sourcepub async fn configure_im(&self, arg: &str) -> Result<()>
pub async fn configure_im(&self, arg: &str) -> Result<()>
ConfigureIM method
Sourcepub async fn current_input_method(&self) -> Result<String>
pub async fn current_input_method(&self) -> Result<String>
CurrentInputMethod method
Sourcepub async fn current_input_method_group(&self) -> Result<String>
pub async fn current_input_method_group(&self) -> Result<String>
CurrentInputMethodGroup method
Sourcepub async fn current_ui(&self) -> Result<String>
pub async fn current_ui(&self) -> Result<String>
CurrentUI method
Sourcepub async fn deactivate(&self) -> Result<()>
pub async fn deactivate(&self) -> Result<()>
Deactivate method
Sourcepub async fn debug_info(&self) -> Result<String>
pub async fn debug_info(&self) -> Result<String>
DebugInfo method
Sourcepub async fn full_input_method_group_info(
&self,
input_method_group_name: &str,
) -> Result<(String, String, String, HashMap<String, OwnedValue>, Vec<(String, String, String, String, String, String, String, bool, String, HashMap<String, OwnedValue>)>)>
pub async fn full_input_method_group_info( &self, input_method_group_name: &str, ) -> Result<(String, String, String, HashMap<String, OwnedValue>, Vec<(String, String, String, String, String, String, String, bool, String, HashMap<String, OwnedValue>)>)>
FullInputMethodGroupInfo method
Sourcepub async fn get_addons(
&self,
) -> Result<Vec<(String, String, String, i32, bool, bool)>>
pub async fn get_addons( &self, ) -> Result<Vec<(String, String, String, i32, bool, bool)>>
GetAddons method
Sourcepub async fn get_addons_v2(
&self,
) -> Result<Vec<(String, String, String, i32, bool, bool, bool, Vec<String>, Vec<String>)>>
pub async fn get_addons_v2( &self, ) -> Result<Vec<(String, String, String, i32, bool, bool, bool, Vec<String>, Vec<String>)>>
GetAddonsV2 method
Sourcepub async fn get_config(
&self,
uri: &str,
) -> Result<(OwnedValue, Vec<(String, Vec<(String, String, String, OwnedValue, HashMap<String, OwnedValue>)>)>)>
pub async fn get_config( &self, uri: &str, ) -> Result<(OwnedValue, Vec<(String, Vec<(String, String, String, OwnedValue, HashMap<String, OwnedValue>)>)>)>
GetConfig method
Sourcepub async fn input_method_group_info(
&self,
group_name: &str,
) -> Result<(String, Vec<(String, String)>)>
pub async fn input_method_group_info( &self, group_name: &str, ) -> Result<(String, Vec<(String, String)>)>
InputMethodGroupInfo method
Sourcepub async fn input_method_groups(&self) -> Result<Vec<String>>
pub async fn input_method_groups(&self) -> Result<Vec<String>>
InputMethodGroups method
Sourcepub async fn open_wayland_connection(&self, name: &str) -> Result<()>
pub async fn open_wayland_connection(&self, name: &str) -> Result<()>
OpenWaylandConnection method
Sourcepub async fn open_wayland_connection_socket(&self, fd: Fd<'_>) -> Result<()>
pub async fn open_wayland_connection_socket(&self, fd: Fd<'_>) -> Result<()>
OpenWaylandConnectionSocket method
Sourcepub async fn open_x11connection(&self, name: &str) -> Result<()>
pub async fn open_x11connection(&self, name: &str) -> Result<()>
OpenX11Connection method
Sourcepub async fn reload_addon_config(&self, addon_name: &str) -> Result<()>
pub async fn reload_addon_config(&self, addon_name: &str) -> Result<()>
ReloadAddonConfig method
Sourcepub async fn reload_config(&self) -> Result<()>
pub async fn reload_config(&self) -> Result<()>
ReloadConfig method
Sourcepub async fn remove_input_method_group(&self, group: &str) -> Result<()>
pub async fn remove_input_method_group(&self, group: &str) -> Result<()>
RemoveInputMethodGroup method
Sourcepub async fn reopen_wayland_connection_socket(
&self,
name: &str,
fd: Fd<'_>,
) -> Result<()>
pub async fn reopen_wayland_connection_socket( &self, name: &str, fd: Fd<'_>, ) -> Result<()>
ReopenWaylandConnectionSocket method
Sourcepub async fn reset_imlist(&self) -> Result<()>
pub async fn reset_imlist(&self) -> Result<()>
ResetIMList method
Sourcepub async fn set_addons_state(&self, addons: &[(&str, bool)]) -> Result<()>
pub async fn set_addons_state(&self, addons: &[(&str, bool)]) -> Result<()>
SetAddonsState method
Sourcepub async fn set_current_im(&self, im_name: &str) -> Result<()>
pub async fn set_current_im(&self, im_name: &str) -> Result<()>
SetCurrentIM method
Sourcepub async fn set_input_method_group_info(
&self,
group_name: &str,
default_layout: &str,
entries: &[(&str, &str)],
) -> Result<()>
pub async fn set_input_method_group_info( &self, group_name: &str, default_layout: &str, entries: &[(&str, &str)], ) -> Result<()>
SetInputMethodGroupInfo method
Sourcepub async fn set_log_rule(&self, rule: &str) -> Result<()>
pub async fn set_log_rule(&self, rule: &str) -> Result<()>
SetLogRule method
Sourcepub async fn switch_input_method_group(&self, group: &str) -> Result<()>
pub async fn switch_input_method_group(&self, group: &str) -> Result<()>
SwitchInputMethodGroup method
Sourcepub async fn receive_input_method_groups_changed(
&self,
) -> Result<InputMethodGroupsChangedStream>
pub async fn receive_input_method_groups_changed( &self, ) -> Result<InputMethodGroupsChangedStream>
Create a stream that receives InputMethodGroupsChanged
signals.
This a convenient wrapper around zbus::Proxy::receive_signal
.
InputMethodGroupsChanged signal
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for ControllerProxy<'p>
impl<'p> AsMut<Proxy<'p>> for ControllerProxy<'p>
Source§impl<'p> AsRef<Proxy<'p>> for ControllerProxy<'p>
impl<'p> AsRef<Proxy<'p>> for ControllerProxy<'p>
Source§impl<'p> Clone for ControllerProxy<'p>
impl<'p> Clone for ControllerProxy<'p>
Source§fn clone(&self) -> ControllerProxy<'p>
fn clone(&self) -> ControllerProxy<'p>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more