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