Struct dbus::arg::Iter
[−]
[src]
pub struct Iter<'a>(_, _);
Helper struct for retrieve one or more arguments from a Message. Note that this is not a Rust iterator, because arguments are often of different types
Methods
impl<'a> Iter<'a>
[src]
fn new(m: &'a Message) -> Iter<'a>
fn get<T: Get<'a>>(&mut self) -> Option<T>
fn arg_type(&mut self) -> i32
The raw arg_type for the current item. Unlike Arg::arg_type, this requires access to self and is not a static method. You can match this against Arg::arg_type for different types to understand what type the current item is.
fn next(&mut self) -> bool
Returns false if there are no more items.
fn recurse(&mut self, arg_type: i32) -> Option<Iter<'a>>
If the current argument is a container of the specified arg_type, then a new Iter is returned which is for iterating over the contents inside the container.
Primarily for internal use (the "get" function is more ergonomic), but could be useful for recursing into containers with unknown types.
Trait Implementations
impl<'a> Copy for Iter<'a>
[src]
impl<'a> Clone for Iter<'a>
[src]
fn clone(&self) -> Iter<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more