Struct mesh::payload::encoding::SerializedMessageEncoder
source · pub struct SerializedMessageEncoder;
Expand description
An encoder for SerializedMessage
.
Trait Implementations§
source§impl<R> MessageDecode<'_, SerializedMessage<R>, R> for SerializedMessageEncoder
impl<R> MessageDecode<'_, SerializedMessage<R>, R> for SerializedMessageEncoder
source§fn read_message(
item: &mut InplaceOption<'_, SerializedMessage<R>>,
reader: MessageReader<'_, '_, R>,
) -> Result<(), Error>
fn read_message( item: &mut InplaceOption<'_, SerializedMessage<R>>, reader: MessageReader<'_, '_, R>, ) -> Result<(), Error>
Reads a message into
item
.source§impl<R> MessageEncode<SerializedMessage<R>, R> for SerializedMessageEncoder
impl<R> MessageEncode<SerializedMessage<R>, R> for SerializedMessageEncoder
source§fn write_message(item: SerializedMessage<R>, writer: MessageWriter<'_, '_, R>)
fn write_message(item: SerializedMessage<R>, writer: MessageWriter<'_, '_, R>)
Writes
item
as a message.source§fn compute_message_size(
item: &mut SerializedMessage<R>,
sizer: MessageSizer<'_>,
)
fn compute_message_size( item: &mut SerializedMessage<R>, sizer: MessageSizer<'_>, )
Computes the size of
item
as a message. Read moreAuto Trait Implementations§
impl Freeze for SerializedMessageEncoder
impl RefUnwindSafe for SerializedMessageEncoder
impl Send for SerializedMessageEncoder
impl Sync for SerializedMessageEncoder
impl Unpin for SerializedMessageEncoder
impl UnwindSafe for SerializedMessageEncoder
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