Struct atspi_proxies::socket::SocketProxyBlocking
source · pub struct SocketProxyBlocking<'p>(/* private fields */);
Implementations§
source§impl<'p> SocketProxyBlocking<'p>
impl<'p> SocketProxyBlocking<'p>
sourcepub fn new(conn: &Connection) -> Result<SocketProxyBlocking<'p>>
pub fn new(conn: &Connection) -> Result<SocketProxyBlocking<'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 fn embed(&self, plug: &(&str, ObjectPath<'_>)) -> Result<ObjectRef>
pub fn embed(&self, plug: &(&str, ObjectPath<'_>)) -> Result<ObjectRef>
@plug: a string for the unique bus name of the application, and an object path for the application’s’ root object.
This is the entry point for an application that wants to register itself against the accessibility registry. The application’s root object, which it passes in @plug, must support the org.a11y.atspi.Application interface.
When an application calls this method on the registry, the following handshake happens:
- Application calls this method on the registry to identify itself.
- The registry sets the “Id” property on the org.a11y.atspi.Application interface on the @plug object.
- The Embed method returns with the bus name and object path for the registry’s root object. Returns: the bus name and object path of the registry’s root object.
sourcepub fn embedded(&self, path: ObjectPath<'_>) -> Result<()>
pub fn embedded(&self, path: ObjectPath<'_>) -> Result<()>
This method is called by a socket to inform the plug that it is being embedded. The plug should register the embedding socket as its parent.
sourcepub fn unembed(&self, plug: &(&str, ObjectPath<'_>)) -> Result<()>
pub fn unembed(&self, plug: &(&str, ObjectPath<'_>)) -> Result<()>
Unembed method @plug: a string for the unique bus name of the application, and an object path for the application’s’ root object.
Unregisters an application from the accesibility registry. It is not necessary to call this method; the accessibility registry detects when an application disconnects from the bus.
Trait Implementations§
source§impl<'p> AsMut<Proxy<'p>> for SocketProxyBlocking<'p>
impl<'p> AsMut<Proxy<'p>> for SocketProxyBlocking<'p>
source§impl<'p> AsRef<Proxy<'p>> for SocketProxyBlocking<'p>
impl<'p> AsRef<Proxy<'p>> for SocketProxyBlocking<'p>
source§impl<'p> Clone for SocketProxyBlocking<'p>
impl<'p> Clone for SocketProxyBlocking<'p>
source§fn clone(&self) -> SocketProxyBlocking<'p>
fn clone(&self) -> SocketProxyBlocking<'p>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<'p> Debug for SocketProxyBlocking<'p>
impl<'p> Debug for SocketProxyBlocking<'p>
source§impl<'p> From<Proxy<'p>> for SocketProxyBlocking<'p>
impl<'p> From<Proxy<'p>> for SocketProxyBlocking<'p>
source§impl<'a> ProxyDefault for SocketProxyBlocking<'a>
impl<'a> ProxyDefault for SocketProxyBlocking<'a>
source§impl<'p> ProxyImpl<'p> for SocketProxyBlocking<'p>
impl<'p> ProxyImpl<'p> for SocketProxyBlocking<'p>
source§impl<'p> Serialize for SocketProxyBlocking<'p>
impl<'p> Serialize for SocketProxyBlocking<'p>
Auto Trait Implementations§
impl<'p> Freeze for SocketProxyBlocking<'p>
impl<'p> !RefUnwindSafe for SocketProxyBlocking<'p>
impl<'p> Send for SocketProxyBlocking<'p>
impl<'p> Sync for SocketProxyBlocking<'p>
impl<'p> Unpin for SocketProxyBlocking<'p>
impl<'p> !UnwindSafe for SocketProxyBlocking<'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
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)
clone_to_uninit
)