pub struct Metadata { /* private fields */ }Expand description
The meta data of a message.
Equivalent to struct orb_metadata in C and C++.
You can obtain a message’s metadata through
Message::metadata().
Implementations§
Source§impl Metadata
impl Metadata
Sourcepub fn size_no_padding(&self) -> u16
pub fn size_no_padding(&self) -> u16
The size of the message in bytes, without any padding at the end.
Sourcepub fn fields(&self) -> &str
pub fn fields(&self) -> &str
A description of all fields and padding in the message.
See message_format_s in the
ulog file format
for a specification of this string.
Sourcepub fn fields_cstr(&self) -> &CStr
pub fn fields_cstr(&self) -> &CStr
Same as fields, but as zero-terminated C string.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl !Send for Metadata
impl Unpin for Metadata
impl UnsafeUnpin for Metadata
impl UnwindSafe for Metadata
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