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