Struct atspi_proxies::socket::SocketProxy
source · pub struct SocketProxy<'p>(/* private fields */);
Implementations§
source§impl<'p> SocketProxy<'p>
impl<'p> SocketProxy<'p>
sourcepub async fn new(conn: &Connection) -> Result<SocketProxy<'p>>
pub async fn new(conn: &Connection) -> Result<SocketProxy<'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 embed(&self, plug: &(&str, ObjectPath<'_>)) -> Result<ObjectRef>
pub async 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 async fn embedded(&self, path: ObjectPath<'_>) -> Result<()>
pub async 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 async fn unembed(&self, plug: &(&str, ObjectPath<'_>)) -> Result<()>
pub async 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 SocketProxy<'p>
impl<'p> AsMut<Proxy<'p>> for SocketProxy<'p>
source§impl<'p> AsRef<Proxy<'p>> for SocketProxy<'p>
impl<'p> AsRef<Proxy<'p>> for SocketProxy<'p>
source§impl<'p> Clone for SocketProxy<'p>
impl<'p> Clone for SocketProxy<'p>
source§fn clone(&self) -> SocketProxy<'p>
fn clone(&self) -> SocketProxy<'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 SocketProxy<'p>
impl<'p> Debug for SocketProxy<'p>
source§impl<'p> From<Proxy<'p>> for SocketProxy<'p>
impl<'p> From<Proxy<'p>> for SocketProxy<'p>
source§impl<'a> ProxyDefault for SocketProxy<'a>
impl<'a> ProxyDefault for SocketProxy<'a>
source§impl<'p> ProxyImpl<'p> for SocketProxy<'p>
impl<'p> ProxyImpl<'p> for SocketProxy<'p>
source§impl<'p> Serialize for SocketProxy<'p>
impl<'p> Serialize for SocketProxy<'p>
Auto Trait Implementations§
impl<'p> Freeze for SocketProxy<'p>
impl<'p> !RefUnwindSafe for SocketProxy<'p>
impl<'p> Send for SocketProxy<'p>
impl<'p> Sync for SocketProxy<'p>
impl<'p> Unpin for SocketProxy<'p>
impl<'p> !UnwindSafe for SocketProxy<'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
)