pub enum Value<'a> {
None,
Bool(bool),
Int8(i8),
Int16(i16),
Int32(i32),
Long(i64),
Float(f32),
Double(f64),
FloatArray(Cow<'a, [f32]>),
Binary(Cow<'a, [u8]>),
String(Cow<'a, str>),
}
Variants§
None
Bool(bool)
Int8(i8)
Int16(i16)
Int32(i32)
Long(i64)
Float(f32)
Double(f64)
FloatArray(Cow<'a, [f32]>)
Binary(Cow<'a, [u8]>)
String(Cow<'a, str>)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Value<'a>
impl<'a> RefUnwindSafe for Value<'a>
impl<'a> Send for Value<'a>
impl<'a> Sync for Value<'a>
impl<'a> Unpin for Value<'a>
impl<'a> UnwindSafe for Value<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request