Struct mesh::message::MessageEncoder
source · pub struct MessageEncoder;
Trait Implementations§
source§impl MessageDecode<'_, Message, Resource> for MessageEncoder
impl MessageDecode<'_, Message, Resource> for MessageEncoder
source§fn read_message(
item: &mut InplaceOption<'_, Message>,
reader: MessageReader<'_, '_, Resource>,
) -> Result<(), Error>
fn read_message( item: &mut InplaceOption<'_, Message>, reader: MessageReader<'_, '_, Resource>, ) -> Result<(), Error>
Reads a message into
item
.source§impl MessageEncode<Box<dyn DynSerializeMessage>, Resource> for MessageEncoder
impl MessageEncode<Box<dyn DynSerializeMessage>, Resource> for MessageEncoder
source§fn write_message(
item: Box<dyn DynSerializeMessage>,
writer: MessageWriter<'_, '_, Resource>,
)
fn write_message( item: Box<dyn DynSerializeMessage>, writer: MessageWriter<'_, '_, Resource>, )
Writes
item
as a message.source§fn compute_message_size(
item: &mut Box<dyn DynSerializeMessage>,
sizer: MessageSizer<'_>,
)
fn compute_message_size( item: &mut Box<dyn DynSerializeMessage>, sizer: MessageSizer<'_>, )
Computes the size of
item
as a message. Read moresource§impl MessageEncode<Message, Resource> for MessageEncoder
impl MessageEncode<Message, Resource> for MessageEncoder
source§fn write_message(item: Message, writer: MessageWriter<'_, '_, Resource>)
fn write_message(item: Message, writer: MessageWriter<'_, '_, Resource>)
Writes
item
as a message.source§fn compute_message_size(item: &mut Message, sizer: MessageSizer<'_>)
fn compute_message_size(item: &mut Message, sizer: MessageSizer<'_>)
Computes the size of
item
as a message. Read moreAuto Trait Implementations§
impl Freeze for MessageEncoder
impl RefUnwindSafe for MessageEncoder
impl Send for MessageEncoder
impl Sync for MessageEncoder
impl Unpin for MessageEncoder
impl UnwindSafe for MessageEncoder
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