Struct ControllerProxyBlocking

Source
pub struct ControllerProxyBlocking<'p>(/* private fields */);

Implementations§

Source§

impl<'p> ControllerProxyBlocking<'p>

Source

pub fn new(conn: &Connection) -> Result<ControllerProxyBlocking<'p>>

Creates a new proxy with the default service and path.

Source

pub fn builder(conn: &Connection) -> Builder<'p, Self>

Returns a customizable builder for this proxy.

Source

pub fn into_inner(self) -> Proxy<'p>

Consumes self, returning the underlying zbus::Proxy.

Source

pub fn inner(&self) -> &Proxy<'p>

The reference to the underlying zbus::Proxy.

Source

pub fn inner_mut(&mut self) -> &mut Proxy<'p>

The mutable reference to the underlying zbus::Proxy.

Source

pub fn activate(&self) -> Result<()>

Activate method

Source

pub fn add_input_method_group(&self, group: &str) -> Result<()>

AddInputMethodGroup method

Source

pub fn addon_for_im(&self, im_name: &str) -> Result<String>

AddonForIM method

Source

pub fn available_input_methods( &self, ) -> Result<Vec<(String, String, String, String, String, String, bool)>>

AvailableInputMethods method

Source

pub fn available_keyboard_layouts( &self, ) -> Result<Vec<(String, String, Vec<String>, Vec<(String, String, Vec<String>)>)>>

AvailableKeyboardLayouts method

Source

pub fn can_restart(&self) -> Result<bool>

CanRestart method

Source

pub fn check_update(&self) -> Result<bool>

CheckUpdate method

Source

pub fn configure(&self) -> Result<()>

Configure method

Source

pub fn configure_addon(&self, arg: &str) -> Result<()>

ConfigureAddon method

Source

pub fn configure_im(&self, arg: &str) -> Result<()>

ConfigureIM method

Source

pub fn current_input_method(&self) -> Result<String>

CurrentInputMethod method

Source

pub fn current_input_method_group(&self) -> Result<String>

CurrentInputMethodGroup method

Source

pub fn current_ui(&self) -> Result<String>

CurrentUI method

Source

pub fn deactivate(&self) -> Result<()>

Deactivate method

Source

pub fn debug_info(&self) -> Result<String>

DebugInfo method

Source

pub fn exit(&self) -> Result<()>

Exit method

Source

pub 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

Source

pub fn get_addons( &self, ) -> Result<Vec<(String, String, String, i32, bool, bool)>>

GetAddons method

Source

pub fn get_addons_v2( &self, ) -> Result<Vec<(String, String, String, i32, bool, bool, bool, Vec<String>, Vec<String>)>>

GetAddonsV2 method

Source

pub fn get_config( &self, uri: &str, ) -> Result<(OwnedValue, Vec<(String, Vec<(String, String, String, OwnedValue, HashMap<String, OwnedValue>)>)>)>

GetConfig method

Source

pub fn input_method_group_info( &self, group_name: &str, ) -> Result<(String, Vec<(String, String)>)>

InputMethodGroupInfo method

Source

pub fn input_method_groups(&self) -> Result<Vec<String>>

InputMethodGroups method

Source

pub fn open_wayland_connection(&self, name: &str) -> Result<()>

OpenWaylandConnection method

Source

pub fn open_wayland_connection_socket(&self, fd: Fd<'_>) -> Result<()>

OpenWaylandConnectionSocket method

Source

pub fn open_x11connection(&self, name: &str) -> Result<()>

OpenX11Connection method

Source

pub fn refresh(&self) -> Result<()>

Refresh method

Source

pub fn reload_addon_config(&self, addon_name: &str) -> Result<()>

ReloadAddonConfig method

Source

pub fn reload_config(&self) -> Result<()>

ReloadConfig method

Source

pub fn remove_input_method_group(&self, group: &str) -> Result<()>

RemoveInputMethodGroup method

Source

pub fn reopen_wayland_connection_socket( &self, name: &str, fd: Fd<'_>, ) -> Result<()>

ReopenWaylandConnectionSocket method

Source

pub fn reset_imlist(&self) -> Result<()>

ResetIMList method

Source

pub fn restart(&self) -> Result<()>

Restart method

Source

pub fn save(&self) -> Result<()>

Save method

Source

pub fn set_addons_state(&self, addons: &[(&str, bool)]) -> Result<()>

SetAddonsState method

Source

pub fn set_config(&self, uri: &str, v: &Value<'_>) -> Result<()>

SetConfig method

Source

pub fn set_current_im(&self, im_name: &str) -> Result<()>

SetCurrentIM method

Source

pub fn set_input_method_group_info( &self, group_name: &str, default_layout: &str, entries: &[(&str, &str)], ) -> Result<()>

SetInputMethodGroupInfo method

Source

pub fn set_log_rule(&self, rule: &str) -> Result<()>

SetLogRule method

Source

pub fn state(&self) -> Result<i32>

State method

Source

pub fn switch_input_method_group(&self, group: &str) -> Result<()>

SwitchInputMethodGroup method

Source

pub fn toggle(&self) -> Result<()>

Toggle method

Source

pub fn receive_input_method_groups_changed( &self, ) -> Result<InputMethodGroupsChangedIterator>

Create a stream that receives InputMethodGroupsChanged signals.

This a convenient wrapper around zbus::blocking::Proxy::receive_signal. InputMethodGroupsChanged signal

Trait Implementations§

Source§

impl<'p> AsMut<Proxy<'p>> for ControllerProxyBlocking<'p>

Source§

fn as_mut(&mut self) -> &mut Proxy<'p>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<'p> AsRef<Proxy<'p>> for ControllerProxyBlocking<'p>

Source§

fn as_ref(&self) -> &Proxy<'p>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<'p> Clone for ControllerProxyBlocking<'p>

Source§

fn clone(&self) -> ControllerProxyBlocking<'p>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'p> Debug for ControllerProxyBlocking<'p>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Defaults for ControllerProxyBlocking<'a>

Source§

const INTERFACE: &'static Option<InterfaceName<'static>>

Source§

const DESTINATION: &'static Option<BusName<'static>>

Source§

const PATH: &'static Option<ObjectPath<'static>>

Source§

impl<'p> From<Proxy<'p>> for ControllerProxyBlocking<'p>

Source§

fn from(proxy: Proxy<'p>) -> Self

Converts to this type from the input type.
Source§

impl<'p> ProxyImpl<'p> for ControllerProxyBlocking<'p>

Source§

fn builder(conn: &Connection) -> Builder<'p, Self>

Return a customizable builder for this proxy.
Source§

fn into_inner(self) -> Proxy<'p>

Consume self, returning the underlying zbus::Proxy.
Source§

fn inner(&self) -> &Proxy<'p>

The reference to the underlying zbus::Proxy.
Source§

impl<'p> Serialize for ControllerProxyBlocking<'p>

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'p> Type for ControllerProxyBlocking<'p>

Source§

const SIGNATURE: &'static Signature

The signature for the implementing type, in parsed format. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynamicType for T
where T: Type + ?Sized,

Source§

fn signature(&self) -> Signature

The type signature for self. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more