pub struct MsgpCodec();Available on crate feature
msgpack only.Trait Implementations§
Source§impl Codec for MsgpCodec
impl Codec for MsgpCodec
Source§fn encode_into<T: Serialize>(
&self,
task: &T,
buf: &mut Vec<u8>,
) -> Result<usize, ()>
fn encode_into<T: Serialize>( &self, task: &T, buf: &mut Vec<u8>, ) -> Result<usize, ()>
sererialized the msg into buf (with std::io::Writer), and return the size written
fn encode<T: Serialize>(&self, task: &T) -> Result<Vec<u8>, ()>
fn decode<'a, T: Deserialize<'a>>(&self, buf: &'a [u8]) -> Result<T, ()>
Auto Trait Implementations§
impl Freeze for MsgpCodec
impl RefUnwindSafe for MsgpCodec
impl Send for MsgpCodec
impl Sync for MsgpCodec
impl Unpin for MsgpCodec
impl UnsafeUnpin for MsgpCodec
impl UnwindSafe for MsgpCodec
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