pub struct IterAppend<'a>(_, _);
Expand description

Helper struct for appending one or more arguments to a Message.

Implementations

Creates a new IterAppend struct.

Appends the argument.

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.

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.

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.

source

pub fn append_dict_entry<F: FnOnce(&mut IterAppend<'a>)>(&mut self, f: F)

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”.

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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.