[−][src]Struct dbus::arg::IterAppend
Helper struct for appending one or more arguments to a Message.
Implementations
impl<'a> IterAppend<'a>
[src]
pub fn new(m: &'a mut Message) -> IterAppend<'a>
[src]
Creates a new IterAppend struct.
pub fn append<T: Append>(&mut self, a: T)
[src]
Appends the argument.
pub fn append_variant<F: FnOnce(&mut IterAppend<'a>)>(
&mut self,
inner_sig: &Signature,
f: F
)
[src]
&mut self,
inner_sig: &Signature,
f: F
)
Low-level function to append a variant.
Use in case the Variant
struct is not flexible enough -
the easier way is to just call e g "append1" on a message and supply a Variant
parameter.
In order not to get D-Bus errors: during the call to "f" you need to call "append" on
the supplied IterAppend
exactly once,
and with a value which has the same signature as inner_sig.
pub fn append_array<F: FnOnce(&mut IterAppend<'a>)>(
&mut self,
inner_sig: &Signature,
f: F
)
[src]
&mut self,
inner_sig: &Signature,
f: F
)
Low-level function to append an array.
Use in case the Array
struct is not flexible enough -
the easier way is to just call e g "append1" on a message and supply an Array
parameter.
In order not to get D-Bus errors: during the call to "f", you should only call "append" on
the supplied IterAppend
with values which has the same signature as inner_sig.
pub fn append_struct<F: FnOnce(&mut IterAppend<'a>)>(&mut self, f: F)
[src]
Low-level function to append a struct.
Use in case tuples are not flexible enough - the easier way is to just call e g "append1" on a message and supply a tuple parameter.
pub fn append_dict_entry<F: FnOnce(&mut IterAppend<'a>)>(&mut self, f: F)
[src]
Low-level function to append a dict entry.
Use in case the Dict
struct is not flexible enough -
the easier way is to just call e g "append1" on a message and supply a Dict
parameter.
In order not to get D-Bus errors: during the call to "f", you should call "append" once for the key, then once for the value. You should only call this function for a subiterator you got from calling "append_dict", and signatures need to match what you specified in "append_dict".
pub fn append_dict<F: FnOnce(&mut IterAppend<'a>)>(
&mut self,
key_sig: &Signature,
value_sig: &Signature,
f: F
)
[src]
&mut self,
key_sig: &Signature,
value_sig: &Signature,
f: F
)
Low-level function to append a dict.
Use in case the Dict
struct is not flexible enough -
the easier way is to just call e g "append1" on a message and supply a Dict
parameter.
In order not to get D-Bus errors: during the call to "f", you should only call "append_dict_entry" for the subiterator - do this as many times as the number of dict entries.
Trait Implementations
impl<'a> Clone for IterAppend<'a>
[src]
fn clone(&self) -> IterAppend<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Copy for IterAppend<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for IterAppend<'a>
impl<'a> !Send for IterAppend<'a>
impl<'a> !Sync for IterAppend<'a>
impl<'a> Unpin for IterAppend<'a>
impl<'a> UnwindSafe for IterAppend<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,