Struct tonic::codec::ProstCodec
source · [−]pub struct ProstCodec<T, U> { /* private fields */ }
Expand description
A Codec
that implements application/grpc+proto
via the prost library..
Trait Implementations
sourceimpl<T: Clone, U: Clone> Clone for ProstCodec<T, U>
impl<T: Clone, U: Clone> Clone for ProstCodec<T, U>
sourcefn clone(&self) -> ProstCodec<T, U>
fn clone(&self) -> ProstCodec<T, U>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T, U> Codec for ProstCodec<T, U> where
T: Message + Send + 'static,
U: Message + Default + Send + 'static,
impl<T, U> Codec for ProstCodec<T, U> where
T: Message + Send + 'static,
U: Message + Default + Send + 'static,
sourceimpl<T: Debug, U: Debug> Debug for ProstCodec<T, U>
impl<T: Debug, U: Debug> Debug for ProstCodec<T, U>
Auto Trait Implementations
impl<T, U> RefUnwindSafe for ProstCodec<T, U> where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for ProstCodec<T, U> where
T: Send,
U: Send,
impl<T, U> Sync for ProstCodec<T, U> where
T: Sync,
U: Sync,
impl<T, U> Unpin for ProstCodec<T, U> where
T: Unpin,
U: Unpin,
impl<T, U> UnwindSafe for ProstCodec<T, U> where
T: UnwindSafe,
U: UnwindSafe,
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;