pub struct ProtobufCodec<T, R> { /* private fields */ }Expand description
A Protobuf codec that uses prost to encode/decode
Trait Implementations§
Source§impl<T: Clone, R: Clone> Clone for ProtobufCodec<T, R>
impl<T: Clone, R: Clone> Clone for ProtobufCodec<T, R>
Source§fn clone(&self) -> ProtobufCodec<T, R>
fn clone(&self) -> ProtobufCodec<T, R>
Returns a duplicate 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, R> Codec for ProtobufCodec<T, R>
impl<T, R> Codec for ProtobufCodec<T, R>
Auto Trait Implementations§
impl<T, R> Freeze for ProtobufCodec<T, R>
impl<T, R> RefUnwindSafe for ProtobufCodec<T, R>where
T: RefUnwindSafe,
R: RefUnwindSafe,
impl<T, R> Send for ProtobufCodec<T, R>
impl<T, R> Sync for ProtobufCodec<T, R>
impl<T, R> Unpin for ProtobufCodec<T, R>
impl<T, R> UnwindSafe for ProtobufCodec<T, R>where
T: UnwindSafe,
R: 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