pub struct ProtobufCodec;Expand description
Protobuf codec for binary serialization
Uses prost for encoding/decoding protobuf messages. This is the production format for service-to-service communication.
Trait Implementations§
Source§impl Codec for ProtobufCodec
impl Codec for ProtobufCodec
Source§fn content_type() -> ContentType
fn content_type() -> ContentType
Get the content type this codec produces
Auto Trait Implementations§
impl Freeze for ProtobufCodec
impl RefUnwindSafe for ProtobufCodec
impl Send for ProtobufCodec
impl Sync for ProtobufCodec
impl Unpin for ProtobufCodec
impl UnsafeUnpin for ProtobufCodec
impl UnwindSafe for ProtobufCodec
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