Struct atspi_proxies::collection::CollectionProxy
source · pub struct CollectionProxy<'p>(/* private fields */);
Implementations§
source§impl<'p> CollectionProxy<'p>
impl<'p> CollectionProxy<'p>
sourcepub async fn new(conn: &Connection) -> Result<CollectionProxy<'p>>
pub async fn new(conn: &Connection) -> Result<CollectionProxy<'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 get_active_descendant(&self) -> Result<ObjectRef>
pub async fn get_active_descendant(&self) -> Result<ObjectRef>
The active descendant of the given object.
May not be implemented by any known toolkit or private implementation.
sourcepub async fn get_matches(
&self,
rule: ObjectMatchRule,
sortby: SortOrder,
count: i32,
traverse: bool,
) -> Result<Vec<ObjectRef>>
pub async fn get_matches( &self, rule: ObjectMatchRule, sortby: SortOrder, count: i32, traverse: bool, ) -> Result<Vec<ObjectRef>>
Retrieves a list of objects that match the specified ObjectMatchRule, ordered according to SortOrder and limited by the count parameter.
§Arguments
rule
- AnObjectMatchRule
describing the match criteria.sortby
- ASortOrder
specifying the way the results are to be sorted.count
- The maximum number of results to return, or 0 for no limit.traverse
- Not supported.
sourcepub async fn get_matches_from(
&self,
current_object: &ObjectPath<'_>,
rule: ObjectMatchRule,
sortby: SortOrder,
tree: TreeTraversalType,
count: i32,
traverse: bool,
) -> Result<Vec<ObjectRef>>
pub async fn get_matches_from( &self, current_object: &ObjectPath<'_>, rule: ObjectMatchRule, sortby: SortOrder, tree: TreeTraversalType, count: i32, traverse: bool, ) -> Result<Vec<ObjectRef>>
Retrieves objects from the collection, after current_object
, matching a given rule
.
§Arguments
current_object
- The object at which to start searching.rule
- AnObjectMatchRule
describing the match criteria.sortby
- ASortOrder
specifying the way the results are to be sorted.tree
- ATreeTraversalType
specifying restrictions on the objects to be traversed.count
- The maximum number of results to return, or 0 for no limit.traverse
- Not supported by the known implementation (atk-collection).
sourcepub async fn get_matches_to(
&self,
current_object: &ObjectPath<'_>,
rule: ObjectMatchRule,
sortby: SortOrder,
tree: TreeTraversalType,
limit_scope: bool,
count: i32,
traverse: bool,
) -> Result<Vec<ObjectRef>>
pub async fn get_matches_to( &self, current_object: &ObjectPath<'_>, rule: ObjectMatchRule, sortby: SortOrder, tree: TreeTraversalType, limit_scope: bool, count: i32, traverse: bool, ) -> Result<Vec<ObjectRef>>
Retrieves objects from the collection, before current_object
, matching a given rule
.
§Arguments
current_object
- The object at which to start searching.rule
- AnObjectMatchRule
describing the match criteria.sortby
- ASortOrder
specifying the way the results are to be sorted.tree
- ATreeTraversalType
specifying restrictions on the objects to be traversed.limit_scope
- Iftrue
, only descendants ofcurrent_object
’s parent will be returned. Otherwise (iffalse
), any accessible may be returned if it would preceedcurrent_object
in a flattened hierarchy.count
- The maximum number of results to return, or 0 for no limit.traverse
- Not supported by the known implementation (atk-collection).
Trait Implementations§
source§impl<'p> AsMut<Proxy<'p>> for CollectionProxy<'p>
impl<'p> AsMut<Proxy<'p>> for CollectionProxy<'p>
source§impl<'p> AsRef<Proxy<'p>> for CollectionProxy<'p>
impl<'p> AsRef<Proxy<'p>> for CollectionProxy<'p>
source§impl<'p> Clone for CollectionProxy<'p>
impl<'p> Clone for CollectionProxy<'p>
source§fn clone(&self) -> CollectionProxy<'p>
fn clone(&self) -> CollectionProxy<'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 CollectionProxy<'p>
impl<'p> Debug for CollectionProxy<'p>
source§impl<'p> From<Proxy<'p>> for CollectionProxy<'p>
impl<'p> From<Proxy<'p>> for CollectionProxy<'p>
source§impl<'a> ProxyDefault for CollectionProxy<'a>
impl<'a> ProxyDefault for CollectionProxy<'a>
source§impl<'p> ProxyImpl<'p> for CollectionProxy<'p>
impl<'p> ProxyImpl<'p> for CollectionProxy<'p>
source§impl<'p> Serialize for CollectionProxy<'p>
impl<'p> Serialize for CollectionProxy<'p>
Auto Trait Implementations§
impl<'p> Freeze for CollectionProxy<'p>
impl<'p> !RefUnwindSafe for CollectionProxy<'p>
impl<'p> Send for CollectionProxy<'p>
impl<'p> Sync for CollectionProxy<'p>
impl<'p> Unpin for CollectionProxy<'p>
impl<'p> !UnwindSafe for CollectionProxy<'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