pub struct PackedAttrKvs<K: Into<u32> + Copy + Debug>(pub Vec<(K, AttrVal)>);
Expand description

A way to bundle together attr kvs for transport purposes. The ‘u32’ is meant to represent an attr key, where the name->number mapping is defined elsewhere in the protocol.

These are encoded in cbor in a ‘reasonably compact’ way: an array of alternating u32 key and AttrVals.

Tuple Fields§

§0: Vec<(K, AttrVal)>

Trait Implementations§

Formats the value using the given formatter. Read more
Encode a value of this type using the given Encoder.
Is this value of Self a nil value? 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 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.