Struct madsim_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, U> Clone for ProstCodec<T, U> where
T: Clone,
U: Clone,
impl<T, U> Clone for ProstCodec<T, U> where
T: Clone,
U: Clone,
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: 'static + Message + Send,
U: 'static + Message + Default + Send,
impl<T, U> Codec for ProstCodec<T, U> where
T: 'static + Message + Send,
U: 'static + Message + Default + Send,
type Encode = T
type Encode = T
The encodable message.
type Decode = U
type Decode = U
The decodable message.
type Encoder = ProstEncoder<T>
type Encoder = ProstEncoder<T>
The encoder that can encode a message.
type Decoder = ProstDecoder<U>
type Decoder = ProstDecoder<U>
The encoder that can decode a message.
sourcefn encoder(&mut self) -> <ProstCodec<T, U> as Codec>::Encoder
fn encoder(&mut self) -> <ProstCodec<T, U> as Codec>::Encoder
Fetch the encoder.
sourcefn decoder(&mut self) -> <ProstCodec<T, U> as Codec>::Decoder
fn decoder(&mut self) -> <ProstCodec<T, U> as Codec>::Decoder
Fetch the decoder.
sourceimpl<T, U> Debug for ProstCodec<T, U> where
T: Debug,
U: Debug,
impl<T, U> Debug for ProstCodec<T, U> where
T: Debug,
U: Debug,
sourceimpl<T, U> Default for ProstCodec<T, U>
impl<T, U> Default for ProstCodec<T, U>
sourcefn default() -> ProstCodec<T, U>
fn default() -> ProstCodec<T, U>
Returns the “default value” for a type. Read more
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;
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;
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message T
in a tonic::Request
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn 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>,
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>,
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn 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;
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;
T: Future, type Output = <T as Future>::Output;
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more