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<'a> Defaults for CollectionProxy<'a>
impl<'a> Defaults for CollectionProxy<'a>
const INTERFACE: &'static Option<InterfaceName<'static>>
const DESTINATION: &'static Option<BusName<'static>>
const PATH: &'static Option<ObjectPath<'static>>
Source§impl<'p> From<Proxy<'p>> for CollectionProxy<'p>
impl<'p> From<Proxy<'p>> for CollectionProxy<'p>
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