pub struct MessagePackEncoder {}Expand description
Encodes messages to MessagePack binary format.
Trait Implementations§
Source§impl Default for MessagePackEncoder
impl Default for MessagePackEncoder
Source§fn default() -> MessagePackEncoder
fn default() -> MessagePackEncoder
Returns the “default value” for a type. Read more
Source§impl Encoder for MessagePackEncoder
impl Encoder for MessagePackEncoder
Source§fn encode<T>(&self, value: &T) -> Result<Bytes, EncodeError>where
T: Serialize,
fn encode<T>(&self, value: &T) -> Result<Bytes, EncodeError>where
T: Serialize,
Encode the specified object and return the bytes representing the encoded value.
Source§fn encode_mut<T>(&mut self, value: &T) -> Result<Bytes, EncodeError>where
T: Serialize,
fn encode_mut<T>(&mut self, value: &T) -> Result<Bytes, EncodeError>where
T: Serialize,
Encode the specified object and return the bytes representing the encoded value, possibly
mutating the state of the encoder.
Source§fn transform<BT>(self, transformer: BT) -> TransformedEncoder<Self, BT>where
Self: Sized,
BT: BinaryTransform,
fn transform<BT>(self, transformer: BT) -> TransformedEncoder<Self, BT>where
Self: Sized,
BT: BinaryTransform,
Takes the encoder and applies the given transform to data produced by it.
Auto Trait Implementations§
impl Freeze for MessagePackEncoder
impl RefUnwindSafe for MessagePackEncoder
impl Send for MessagePackEncoder
impl Sync for MessagePackEncoder
impl Unpin for MessagePackEncoder
impl UnsafeUnpin for MessagePackEncoder
impl UnwindSafe for MessagePackEncoder
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