#[repr(C)]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
sourceimpl 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 RefUnwindSafe for Metadata
impl !Send for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more