Enum tonic::metadata::KeyAndMutValueRef [−][src]
pub enum KeyAndMutValueRef<'a> {
Ascii(&'a MetadataKey<Ascii>, &'a mut MetadataValue<Ascii>),
Binary(&'a MetadataKey<Binary>, &'a mut MetadataValue<Binary>),
}
Expand description
Reference to a key and an associated value in a MetadataMap
. It can point
to either an ascii or a binary (“*-bin”) key.
Variants
Ascii(&'a MetadataKey<Ascii>, &'a mut MetadataValue<Ascii>)
An ascii metadata key and value.
Tuple Fields of Ascii
0: &'a MetadataKey<Ascii>
1: &'a mut MetadataValue<Ascii>
Binary(&'a MetadataKey<Binary>, &'a mut MetadataValue<Binary>)
A binary metadata key and value.
Tuple Fields of Binary
0: &'a MetadataKey<Binary>
1: &'a mut MetadataValue<Binary>
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for KeyAndMutValueRef<'a>
impl<'a> Send for KeyAndMutValueRef<'a>
impl<'a> Sync for KeyAndMutValueRef<'a>
impl<'a> Unpin for KeyAndMutValueRef<'a>
impl<'a> !UnwindSafe for KeyAndMutValueRef<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more