Struct modality_ingest_client::protocol::PackedAttrKvs
source · 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§
Auto Trait Implementations§
impl<K> Freeze for PackedAttrKvs<K>
impl<K> RefUnwindSafe for PackedAttrKvs<K>where
K: RefUnwindSafe,
impl<K> Send for PackedAttrKvs<K>where
K: Send,
impl<K> Sync for PackedAttrKvs<K>where
K: Sync,
impl<K> Unpin for PackedAttrKvs<K>where
K: Unpin,
impl<K> UnwindSafe for PackedAttrKvs<K>where
K: UnwindSafe,
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