Struct mesh::payload::encoding::DurationEncoding
source · pub struct DurationEncoding;
Expand description
Protobuf-compatible encoding for Duration
.
Trait Implementations§
source§impl DescribeField<Duration> for DurationEncoding
impl DescribeField<Duration> for DurationEncoding
source§const FIELD_TYPE: FieldType<'static> = _
const FIELD_TYPE: FieldType<'static> = _
The type of the field.
source§const PACKED_TYPE: Option<&'static str> = None
const PACKED_TYPE: Option<&'static str> = None
The type name of the field in a packed context.
source§impl<R> MessageDecode<'_, Duration, R> for DurationEncoding
impl<R> MessageDecode<'_, Duration, R> for DurationEncoding
source§fn read_message(
item: &mut InplaceOption<'_, Duration>,
reader: MessageReader<'_, '_, R>,
) -> Result<(), Error>
fn read_message( item: &mut InplaceOption<'_, Duration>, reader: MessageReader<'_, '_, R>, ) -> Result<(), Error>
Reads a message into
item
.source§impl<R> MessageEncode<Duration, R> for DurationEncoding
impl<R> MessageEncode<Duration, R> for DurationEncoding
source§fn write_message(item: Duration, writer: MessageWriter<'_, '_, R>)
fn write_message(item: Duration, writer: MessageWriter<'_, '_, R>)
Writes
item
as a message.source§fn compute_message_size(item: &mut Duration, sizer: MessageSizer<'_>)
fn compute_message_size(item: &mut Duration, sizer: MessageSizer<'_>)
Computes the size of
item
as a message. Read moreAuto Trait Implementations§
impl Freeze for DurationEncoding
impl RefUnwindSafe for DurationEncoding
impl Send for DurationEncoding
impl Sync for DurationEncoding
impl Unpin for DurationEncoding
impl UnwindSafe for DurationEncoding
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