Enum tonic::metadata::KeyRef [−][src]
pub enum KeyRef<'a> {
Ascii(&'a MetadataKey<Ascii>),
Binary(&'a MetadataKey<Binary>),
}
Expand description
Reference to a key in a MetadataMap
. It can point
to either an ascii or a binary (“*-bin”) key.
Variants
Ascii(&'a MetadataKey<Ascii>)
An ascii metadata key and value.
Tuple Fields of Ascii
0: &'a MetadataKey<Ascii>
Binary(&'a MetadataKey<Binary>)
A binary metadata key and value.
Tuple Fields of Binary
0: &'a MetadataKey<Binary>
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for KeyRef<'a>
impl<'a> UnwindSafe for KeyRef<'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