pub struct DeviceEventControllerProxy<'p>(/* private fields */);
Implementations§
source§impl<'p> DeviceEventControllerProxy<'p>
impl<'p> DeviceEventControllerProxy<'p>
sourcepub async fn new(conn: &Connection) -> Result<DeviceEventControllerProxy<'p>>
pub async fn new(conn: &Connection) -> Result<DeviceEventControllerProxy<'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 deregister_device_event_listener(
&self,
listener: &ObjectPath<'_>,
types: EventType,
) -> Result<()>
pub async fn deregister_device_event_listener( &self, listener: &ObjectPath<'_>, types: EventType, ) -> Result<()>
DeregisterDeviceEventListener method
sourcepub async fn deregister_keystroke_listener(
&self,
listener: &ObjectPath<'_>,
keys: &[KeyDefinition<'_>],
mask: u32,
type_: EventType,
) -> Result<()>
pub async fn deregister_keystroke_listener( &self, listener: &ObjectPath<'_>, keys: &[KeyDefinition<'_>], mask: u32, type_: EventType, ) -> Result<()>
DeregisterKeystrokeListener method
sourcepub async fn generate_keyboard_event(
&self,
keycode: i32,
keystring: &str,
type_: KeySynthType,
) -> Result<()>
pub async fn generate_keyboard_event( &self, keycode: i32, keystring: &str, type_: KeySynthType, ) -> Result<()>
GenerateKeyboardEvent method
sourcepub async fn generate_mouse_event(
&self,
x: i32,
y: i32,
event_name: &str,
) -> Result<()>
pub async fn generate_mouse_event( &self, x: i32, y: i32, event_name: &str, ) -> Result<()>
GenerateMouseEvent method
sourcepub async fn notify_listeners_async(
&self,
event: &DeviceEvent<'_>,
) -> Result<()>
pub async fn notify_listeners_async( &self, event: &DeviceEvent<'_>, ) -> Result<()>
NotifyListenersAsync method
sourcepub async fn notify_listeners_sync(
&self,
event: &DeviceEvent<'_>,
) -> Result<bool>
pub async fn notify_listeners_sync( &self, event: &DeviceEvent<'_>, ) -> Result<bool>
NotifyListenersSync method
sourcepub async fn register_device_event_listener(
&self,
listener: &ObjectPath<'_>,
types: EventType,
) -> Result<bool>
pub async fn register_device_event_listener( &self, listener: &ObjectPath<'_>, types: EventType, ) -> Result<bool>
RegisterDeviceEventListener method
sourcepub async fn register_keystroke_listener(
&self,
listener: &ObjectPath<'_>,
keys: &[KeyDefinition<'_>],
mask: u32,
type_: &[EventType],
mode: &EventListenerMode,
) -> Result<bool>
pub async fn register_keystroke_listener( &self, listener: &ObjectPath<'_>, keys: &[KeyDefinition<'_>], mask: u32, type_: &[EventType], mode: &EventListenerMode, ) -> Result<bool>
RegisterKeystrokeListener method
Trait Implementations§
source§impl<'p> AsMut<Proxy<'p>> for DeviceEventControllerProxy<'p>
impl<'p> AsMut<Proxy<'p>> for DeviceEventControllerProxy<'p>
source§impl<'p> AsRef<Proxy<'p>> for DeviceEventControllerProxy<'p>
impl<'p> AsRef<Proxy<'p>> for DeviceEventControllerProxy<'p>
source§impl<'p> Clone for DeviceEventControllerProxy<'p>
impl<'p> Clone for DeviceEventControllerProxy<'p>
source§fn clone(&self) -> DeviceEventControllerProxy<'p>
fn clone(&self) -> DeviceEventControllerProxy<'p>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'p> Debug for DeviceEventControllerProxy<'p>
impl<'p> Debug for DeviceEventControllerProxy<'p>
source§impl<'p> From<Proxy<'p>> for DeviceEventControllerProxy<'p>
impl<'p> From<Proxy<'p>> for DeviceEventControllerProxy<'p>
source§impl<'a> ProxyDefault for DeviceEventControllerProxy<'a>
impl<'a> ProxyDefault for DeviceEventControllerProxy<'a>
source§impl<'p> ProxyImpl<'p> for DeviceEventControllerProxy<'p>
impl<'p> ProxyImpl<'p> for DeviceEventControllerProxy<'p>
source§impl<'p> Serialize for DeviceEventControllerProxy<'p>
impl<'p> Serialize for DeviceEventControllerProxy<'p>
Auto Trait Implementations§
impl<'p> Freeze for DeviceEventControllerProxy<'p>
impl<'p> !RefUnwindSafe for DeviceEventControllerProxy<'p>
impl<'p> Send for DeviceEventControllerProxy<'p>
impl<'p> Sync for DeviceEventControllerProxy<'p>
impl<'p> Unpin for DeviceEventControllerProxy<'p>
impl<'p> !UnwindSafe for DeviceEventControllerProxy<'p>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> DynamicType for T
impl<T> DynamicType for T
source§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more