pub struct MsgPackCodec;Expand description
MessagePack codec marker type.
Uses rmp-serde for efficient binary serialization.
§Example
use intercom::{Client, MsgPackCodec};
let client = Client::<MsgPackCodec>::connect("nats://localhost:4222").await?;Trait Implementations§
Source§impl Clone for MsgPackCodec
impl Clone for MsgPackCodec
Source§fn clone(&self) -> MsgPackCodec
fn clone(&self) -> MsgPackCodec
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 CodecType for MsgPackCodec
Available on crate feature msgpack only.
impl CodecType for MsgPackCodec
Available on crate feature
msgpack only.Source§impl Debug for MsgPackCodec
impl Debug for MsgPackCodec
Source§impl Default for MsgPackCodec
impl Default for MsgPackCodec
Source§fn default() -> MsgPackCodec
fn default() -> MsgPackCodec
Returns the “default value” for a type. Read more
impl Copy for MsgPackCodec
Auto Trait Implementations§
impl Freeze for MsgPackCodec
impl RefUnwindSafe for MsgPackCodec
impl Send for MsgPackCodec
impl Sync for MsgPackCodec
impl Unpin for MsgPackCodec
impl UnwindSafe for MsgPackCodec
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