Enum tonic::metadata::KeyAndValueRef [−][src]
pub enum KeyAndValueRef<'a> { Ascii(&'a MetadataKey<Ascii>, &'a MetadataValue<Ascii>), Binary(&'a MetadataKey<Binary>, &'a MetadataValue<Binary>), }
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 MetadataValue<Ascii>)
An ascii metadata key and value.
Binary(&'a MetadataKey<Binary>, &'a MetadataValue<Binary>)
A binary metadata key and value.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for KeyAndValueRef<'a>
impl<'a> RefUnwindSafe for KeyAndValueRef<'a>
impl<'a> Send for KeyAndValueRef<'a>
impl<'a> Send for KeyAndValueRef<'a>
impl<'a> Sync for KeyAndValueRef<'a>
impl<'a> Sync for KeyAndValueRef<'a>
impl<'a> Unpin for KeyAndValueRef<'a>
impl<'a> Unpin for KeyAndValueRef<'a>
impl<'a> UnwindSafe for KeyAndValueRef<'a>
impl<'a> UnwindSafe for KeyAndValueRef<'a>
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
pub fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
pub fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
impl<T> WithSubscriber for T
[src]pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
[src]
Notable traits for WithDispatch<T>
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
S: Into<Dispatch>,
pub fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
[src]
Notable traits for WithDispatch<T>
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;