Struct atspi_proxies::selection::SelectionProxy
source · pub struct SelectionProxy<'p>(/* private fields */);
Implementations§
source§impl<'p> SelectionProxy<'p>
impl<'p> SelectionProxy<'p>
sourcepub async fn new(conn: &Connection) -> Result<SelectionProxy<'p>>
pub async fn new(conn: &Connection) -> Result<SelectionProxy<'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 clear_selection(&self) -> Result<bool>
pub async fn clear_selection(&self) -> Result<bool>
ClearSelection method
sourcepub async fn deselect_child(&self, child_index: i32) -> Result<bool>
pub async fn deselect_child(&self, child_index: i32) -> Result<bool>
DeselectChild method
sourcepub async fn deselect_selected_child(
&self,
selected_child_index: i32
) -> Result<bool>
pub async fn deselect_selected_child( &self, selected_child_index: i32 ) -> Result<bool>
DeselectSelectedChild method
sourcepub async fn get_selected_child(
&self,
selected_child_index: i32
) -> Result<ObjectRef>
pub async fn get_selected_child( &self, selected_child_index: i32 ) -> Result<ObjectRef>
GetSelectedChild method
sourcepub async fn is_child_selected(&self, child_index: i32) -> Result<bool>
pub async fn is_child_selected(&self, child_index: i32) -> Result<bool>
IsChildSelected method
sourcepub async fn select_all(&self) -> Result<bool>
pub async fn select_all(&self) -> Result<bool>
SelectAll method
sourcepub async fn select_child(&self, child_index: i32) -> Result<bool>
pub async fn select_child(&self, child_index: i32) -> Result<bool>
SelectChild method
sourcepub async fn nselected_children(&self) -> Result<i32>
pub async fn nselected_children(&self) -> Result<i32>
NSelectedChildren property
sourcepub fn cached_nselected_children(
&self
) -> Result<Option<<Result<i32> as ResultAdapter>::Ok>, <Result<i32> as ResultAdapter>::Err>
pub fn cached_nselected_children( &self ) -> Result<Option<<Result<i32> as ResultAdapter>::Ok>, <Result<i32> as ResultAdapter>::Err>
Get the cached value of the NselectedChildren
property, or None
if the property is not cached.
sourcepub async fn receive_nselected_children_changed(
&self
) -> PropertyStream<'p, <Result<i32> as ResultAdapter>::Ok>
pub async fn receive_nselected_children_changed( &self ) -> PropertyStream<'p, <Result<i32> as ResultAdapter>::Ok>
Create a stream for the NselectedChildren
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
Trait Implementations§
source§impl<'p> AsMut<Proxy<'p>> for SelectionProxy<'p>
impl<'p> AsMut<Proxy<'p>> for SelectionProxy<'p>
source§impl<'p> AsRef<Proxy<'p>> for SelectionProxy<'p>
impl<'p> AsRef<Proxy<'p>> for SelectionProxy<'p>
source§impl<'p> Clone for SelectionProxy<'p>
impl<'p> Clone for SelectionProxy<'p>
source§fn clone(&self) -> SelectionProxy<'p>
fn clone(&self) -> SelectionProxy<'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 SelectionProxy<'p>
impl<'p> Debug for SelectionProxy<'p>
source§impl<'p> From<Proxy<'p>> for SelectionProxy<'p>
impl<'p> From<Proxy<'p>> for SelectionProxy<'p>
source§impl<'a> ProxyDefault for SelectionProxy<'a>
impl<'a> ProxyDefault for SelectionProxy<'a>
source§impl<'p> ProxyImpl<'p> for SelectionProxy<'p>
impl<'p> ProxyImpl<'p> for SelectionProxy<'p>
source§impl<'p> Serialize for SelectionProxy<'p>
impl<'p> Serialize for SelectionProxy<'p>
Auto Trait Implementations§
impl<'p> Freeze for SelectionProxy<'p>
impl<'p> !RefUnwindSafe for SelectionProxy<'p>
impl<'p> Send for SelectionProxy<'p>
impl<'p> Sync for SelectionProxy<'p>
impl<'p> Unpin for SelectionProxy<'p>
impl<'p> !UnwindSafe for SelectionProxy<'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> 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