Struct protokit_grpc::TonicEncoder
source · pub struct TonicEncoder<T>(/* private fields */);
Expand description
A Encoder
that knows how to encode T
.
Trait Implementations§
source§impl<T: Clone> Clone for TonicEncoder<T>
impl<T: Clone> Clone for TonicEncoder<T>
source§fn clone(&self) -> TonicEncoder<T>
fn clone(&self) -> TonicEncoder<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for TonicEncoder<T>
impl<T: Debug> Debug for TonicEncoder<T>
source§impl<T: Default> Default for TonicEncoder<T>
impl<T: Default> Default for TonicEncoder<T>
source§fn default() -> TonicEncoder<T>
fn default() -> TonicEncoder<T>
Returns the “default value” for a type. Read more
source§impl<'buf, T: BinProto<'buf>> Encoder for TonicEncoder<T>
impl<'buf, T: BinProto<'buf>> Encoder for TonicEncoder<T>
Auto Trait Implementations§
impl<T> Freeze for TonicEncoder<T>
impl<T> RefUnwindSafe for TonicEncoder<T>where
T: RefUnwindSafe,
impl<T> Send for TonicEncoder<T>where
T: Send,
impl<T> Sync for TonicEncoder<T>where
T: Sync,
impl<T> Unpin for TonicEncoder<T>where
T: Unpin,
impl<T> UnwindSafe for TonicEncoder<T>where
T: UnwindSafe,
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