Enum tonic::metadata::ValueRefMut
source · [−]pub enum ValueRefMut<'a> {
Ascii(&'a mut MetadataValue<Ascii>),
Binary(&'a mut 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 mut MetadataValue<Ascii>)
An ascii metadata key and value.
Binary(&'a mut MetadataValue<Binary>)
A binary metadata key and value.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for ValueRefMut<'a>
impl<'a> Send for ValueRefMut<'a>
impl<'a> Sync for ValueRefMut<'a>
impl<'a> Unpin for ValueRefMut<'a>
impl<'a> !UnwindSafe for ValueRefMut<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn 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;
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;
T: Future, type Output = <T as Future>::Output;
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn 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;
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;
T: Future, type Output = <T as Future>::Output;