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